This sensor is commonly used with Arduino and other microcontrollers to measure ambient light levels for various applications such as automatic brightness adjustment, light intensity monitoring, and environmental sensing.
Features:
- Peak sensitivity wavelength: 570nm (visible light)
- Wide viewing angle: ±60° half sensitivity angle
- Effective IR blocking for visible light measurement
- Easy to interface with Arduino using analog input
- Operating voltage: 5V
Module Pins:
Pin |
Description |
V |
Power supply (5V) |
G |
Ground (GND) |
S |
Analog signal output connected to Arduino analog input (e.g. A0) |
Schematic Diagram:

Arduino Code Example:
/*
* Arduino Sketch for TEMT6000 Phototransistor Ambient Light Sensor
* Reads the analog voltage from the sensor and displays the voltage in Volts.
*
* Connections:
* V pin -> 5V
* G pin -> GND
* S pin -> Analog input A0
*
* Written by Ahmad Shamshiri for Robojax.com
* Date: May 10, 2018
* Video instructions: https://youtu.be/pxR6e-3XkIk
*/
#define light A0 // Define analog input pin for sensor signal
void setup() {
Serial.begin(9600);
}
void loop() {
int Lvalue = analogRead(light); // Read analog value from sensor
int mVolt = map(Lvalue, 0, 1023, 0, 5000); // Map analog reading (0-1023) to millivolts (0-5000 mV)
float volt = (float)mVolt / 1000.0; // Convert millivolts to volts
Serial.print(mVolt);
Serial.print(" mV ");
Serial.print(volt, 3); // Print voltage with 3 decimal places
Serial.println(" V");
delay(1000); // Wait 1 second before next reading
}
You can download the full TEMT6000 datasheet for detailed specifications and characteristics.
This sensor is commonly used with Arduino and other microcontrollers to measure ambient light levels for various applications such as automatic brightness adjustment, light intensity monitoring, and environmental sensing.
Features:
- Peak sensitivity wavelength: 570nm (visible light)
- Wide viewing angle: ±60° half sensitivity angle
- Effective IR blocking for visible light measurement
- Easy to interface with Arduino using analog input
- Operating voltage: 5V
Module Pins:
Pin |
Description |
V |
Power supply (5V) |
G |
Ground (GND) |
S |
Analog signal output connected to Arduino analog input (e.g. A0) |
Schematic Diagram:

Arduino Code Example:
/*
* Arduino Sketch for TEMT6000 Phototransistor Ambient Light Sensor
* Reads the analog voltage from the sensor and displays the voltage in Volts.
*
* Connections:
* V pin -> 5V
* G pin -> GND
* S pin -> Analog input A0
*
* Written by Ahmad Shamshiri for Robojax.com
* Date: May 10, 2018
* Video instructions: https://youtu.be/pxR6e-3XkIk
*/
#define light A0 // Define analog input pin for sensor signal
void setup() {
Serial.begin(9600);
}
void loop() {
int Lvalue = analogRead(light); // Read analog value from sensor
int mVolt = map(Lvalue, 0, 1023, 0, 5000); // Map analog reading (0-1023) to millivolts (0-5000 mV)
float volt = (float)mVolt / 1000.0; // Convert millivolts to volts
Serial.print(mVolt);
Serial.print(" mV ");
Serial.print(volt, 3); // Print voltage with 3 decimal places
Serial.println(" V");
delay(1000); // Wait 1 second before next reading
}
You can download the full TEMT6000 datasheet for detailed specifications and characteristics.