Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›TEMT6000 Ambient Light Sensor

Component guide · Beginner · 3 min read

TEMT6000 Ambient Light Sensor

Pinout, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the TEMT6000 isTEMT6000 pinoutWiring the TEMT6000Example codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

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.

  • Option 1CJMCU TEMT6000 Ambient Light Sensor Module – Analog Output₹84
  • Option 2DFRobot Gravity Analog Ambient Light Sensor TEMT6000 – Module Only₹689
  • Option 3SparkFun TEMT6000 Ambient Light Sensor Breakout – SMD Phototransistor₹489
01

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.

02

TEMT6000 pinout

The pins on the TEMT6000 and what each one does.

PinFunction
VCCSupply, 3.3 to 5 V
GNDGround
SIG / OUTAnalog output; rises with light
PinFunction
VCC
Supply, 3.3 to 5 V
GND
Ground
SIG / OUT
Analog output; rises with light
03

Wiring the TEMT6000

On an ESP32, power the module from 3.3 V so the output never exceeds the ADC's range.

TEMT6000 pinArduino UnoESP32
VCC5V3V3
GNDGNDGND
SIGA0GPIO 34 (ADC1)
VCC
Arduino Uno:
5V
ESP32:
3V3
GND
Arduino Uno:
GND
ESP32:
GND
SIG
Arduino Uno:
A0
ESP32:
GPIO 34 (ADC1)
04

Example code

The lux figure is an estimate from the datasheet's typical sensitivity. For calibrated lux, use a VEML7700 or BH1750.

Read the light level and estimate lux (Arduino Uno) · Arduino C++Verify & upload in Electrolark
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);
}
05

Setup and tuning

Bright places

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.

Smoothing

average several readings; mains-powered lights flicker at 100 Hz.

Switching threshold

add hysteresis in code so a lamp does not flicker on and off at dusk.

06

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
07

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.
08

Try it: Voltage divider calculator

Change the values and the diagram and results update as you type.

09

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.
10

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

  • CJMCU TEMT6000 Ambient Light Sensor Module – Analog Output
    ₹84View
  • DFRobot Gravity Analog Ambient Light Sensor TEMT6000 – Module Only
    ₹689View
  • SparkFun TEMT6000 Ambient Light Sensor Breakout – SMD Phototransistor
    ₹489View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 5V Relay Module with Optocoupler
    ₹74View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
  • Solderless Breadboard
    ₹68View
Shop Ambient Light, Lux & UV Sensors

Calculators

Voltage divider calculatorAdc resolution calculator

Keep learning

Component guideBeginnerLDR Light SensorsAn LDR (light-dependent resistor or photoresistor) has high resistance in the dark, about 1 MΩ, and low resistance in bright light, under 1 kΩ.3 min read · SensorsComponent guideIntermediatePhotodiodes, Phototransistors and PhotointerruptersA photodiode turns light into a small current and is the fastest light sensor.3 min read · SensorsComparisonBeginnerAmbient Light SensorsAmbient light sensors such as the BH1750, TSL2591, VEML7700 and OPT3001 measure brightness in lux over I2C, so they give accurate readings that do not depend on how you wire a resistor.3 min read · SensorsConcept explainerBeginnerADCs ExplainedAn analog-to-digital converter (ADC) measures a voltage and returns a number.4 min read · Electronics Fundamentals

Sources

  • TEMT6000X01 ambient light sensor datasheet (Vishay)

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the TEMT6000 isTEMT6000 pinoutWiring the TEMT6000Example codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide2 items · ₹152

CJMCU TEMT6000 Ambient Light Sensor Module – Analog Output · Solderless Breadboard

Run itChange the inputs and watch the output

Rough conversion: 200 lux per volt with a 10k resistor. It saturates near 1000 lux at 5 V.

Serial monitor115200 baud
1.498 V  ~300 lux

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question