Component guide · Beginner · 3 min read
TEMT6000 Ambient Light Sensor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The TEMT6000 is a small phototransistor from Vishay whose light response is close to the human eye. On a module with a 10 kΩ resistor it gives an analog voltage that rises with brightness, read with analogRead(). It is a simple, fast way to make lights that switch on at dusk, or screens that dim in the dark.
Key specs at a glance
- Sensor
- NPN phototransistor, human-eye-like response (peak about 570 nm)
- Output
- Analog voltage across a 10 kΩ resistor
- Typical current
- About 50 µA at 100 lux
- Supply
- 3.3 to 5 V
- Useful range
- About 1 to 1,000 lux with a 10 kΩ resistor
- Pins
- VCC, GND, SIG (or OUT)
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
What the TEMT6000 is
A phototransistor passes more current as more light falls on it. The module's 10 kΩ resistor turns that current into a voltage: about 0.5 V at 100 lux, rising until the output reaches the supply voltage in bright light.
Its filter cuts much of the infrared, so it responds more like our eyes than an LDR and reacts in microseconds instead of the LDR's tens of milliseconds.
TEMT6000 pinout
The pins on the TEMT6000 and what each one does.
| Pin | Function |
|---|---|
| VCC | Supply, 3.3 to 5 V |
| GND | Ground |
| SIG / OUT | Analog output; rises with light |
- VCC
- Supply, 3.3 to 5 V
- GND
- Ground
- SIG / OUT
- Analog output; rises with light
Wiring the TEMT6000
On an ESP32, power the module from 3.3 V so the output never exceeds the ADC's range.
| TEMT6000 pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V | 3V3 |
| GND | GND | GND |
| SIG | A0 | GPIO 34 (ADC1) |
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SIG
- Arduino Uno:
- A0
- ESP32:
- GPIO 34 (ADC1)
Example code
The lux figure is an estimate from the datasheet's typical sensitivity. For calibrated lux, use a VEML7700 or BH1750.
const int SIG = A0;
void setup() { Serial.begin(115200); }
void loop() {
float v = analogRead(SIG) * 5.0 / 1023.0; // volts across 10 kOhm
float lux = v * 200.0; // about 0.5 V per 100 lux
Serial.print(v, 3); Serial.print(" V ~"); Serial.print(lux, 0); Serial.println(" lux");
delay(500);
}Setup and tuning
the output saturates at the supply voltage above about 1,000 lux with a 10 kΩ resistor; a smaller resistor (for example 1 kΩ) extends the range.
average several readings; mains-powered lights flicker at 100 Hz.
add hysteresis in code so a lamp does not flicker on and off at dusk.
What you need
Shop this list5 of 7 found in our store · ₹1,379
CJMCU TEMT6000 ambient light module: the sensor this guide coversCJMCU TEMT6000 Ambient Light Sensor Module – Analog Output₹84Closest match, check the specs
DFRobot Gravity Analog Ambient Light Sensor TEMT6000 – Module Only: another version this guide coversDFRobot Gravity Analog Ambient Light Sensor TEMT6000 – Module Only₹689
SparkFun TEMT6000 Ambient Light Sensor Breakout – SMD Phototransistor: another version this guide coversSparkFun TEMT6000 Ambient Light Sensor Breakout – SMD Phototransistor₹489- Uno R3 development board: the controller used in the wiring tableFind this part
- Relay module: to switch a lamp at duskFind this part
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Solderless breadboard: to build without solderingSolderless Breadboard₹68
Alternatives and when to choose them
- LDR light sensors: cheaper, slower, less like the eye.
- VEML7700: calibrated lux over I2C.
- Photodiodes and phototransistors: how they work.
Try it: Voltage divider calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Expecting calibrated lux from an analog phototransistor.
- Powering it from 5 V into an ESP32 ADC pin.
- Switching a lamp with no hysteresis, so it flickers at the threshold.
- Pointing it at the lamp it controls, so it switches itself off.
Frequently asked questions
Is the TEMT6000 analog or digital?
Analog: a voltage that rises with light.
Can it measure lux?
Approximately, about 0.5 V per 100 lux with a 10 kΩ resistor. Use an I2C lux sensor for accuracy.
TEMT6000 or LDR?
The TEMT6000 is faster and closer to the human eye; an LDR is cheaper and simpler.
Does it work at 3.3 V?
Yes.
Why does the reading saturate?
Bright light pushes the output to the supply voltage; use a smaller load resistor.
Parts for this guide
Calculators
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


