Close Menu
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
Facebook X (Twitter) Instagram
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn
How To Electronics
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
How To Electronics
Home » TEMT6000 Ambient Light Sensor & Arduino – Measure Illuminance & Light Intensity
Arduino Projects

TEMT6000 Ambient Light Sensor & Arduino – Measure Illuminance & Light Intensity

Mamtaz AlamBy Mamtaz AlamUpdated:August 22, 20224 Mins Read
Share Facebook Twitter LinkedIn Telegram Reddit WhatsApp
TEMT6000 Light Sensor Arduino
Share
Facebook Twitter LinkedIn Pinterest Email Reddit Telegram WhatsApp

This post is all about TEMT6000 Ambient Light Sensor & Arduino hookup guide. We will interface the TEMT6000 sensor with Arduino & 16×2 LCD Display. The light intensity will be measured in terms of percentage and will be displayed on LCD Display.


Overview: TEMT6000 Light Sensor & Arduino

As we know, most of the modern devices which use Light sensors are notably used for auto-brightness according to light intensity. The device includes mobile phone screens and digital cameras for adjusting exposure. So here we will use one of the best light sensors, i.e TEMT6000 Ambient Light Sensor and interface it with Arduino to measure the light intensity.

We will discuss here the TEMT6000 Ambient Light Sensor and understand the concept of working of the light sensor. Generally, most light sensors work on the same principle. They will detect the brightness of its surroundings. The sensor can also be used in Spectrometer for Triad Spectroscopy.



Components Required

S.N.Components QuantityPurchase Links
1Arduino UNO Board1Amazon | AliExpress
2TEMT600 Light Sensor1Amazon | AliExpress
316x2 LCD Display1Amazon | AliExpress
4Potentiometer 10K1Amazon | AliExpress
5Connecting Wires10Amazon | AliExpress
6Breadboard1Amazon | AliExpress

TEMT6000 Sensor Overview

As you can see from the image below, the TEMT6000 is a simple breakout board sensor. There are three pins labeled on the both top & bottom of the board.

TEMT6000 Ambient Light Sensor

The function of each pin is given in the table below.

TEMT6000 Pins

The TEMT6000 is made up of a single phototransistor, which acts just like a simple NPN transistor. The greater is the incoming light on the Base, the more the current flowing from the Collector to the Emitter. The sensor only works in the visible spectrum (390–700 nm). The Infrared, ultraviolet ray or any other light will have no effect on the sensor.

TEMT6000 Circuit

The sensor operates in the range of 3.3V to 5V. The breakout board has a voltage divider circuit connected to the 10K Resistor. The TEMT600 acts as one of the resistors in the divider network. As the light falls on the phototransistor surface, the resistance value changes which changes the voltage on the SIG pin. An Arduino or any other microcontroller is used to read the value and then to measure illuminance and light intensity.




How Light Detection Works

TEMT6000 Ambient Light Sensor measures illuminance. The Illuminance is a measure of the total quantity of visible light emitted by a source. It is referred to as luminous flux and measured in lumens (lm) per meter square.

But the question is why does the TEMT6000 measure illuminance only? The answer is measuring the intensity of light without factoring in distance is very difficult. For example, if you have a bright source far away and a dim source very close, they can appear to have the same brightness. This is because the brighter source’s light will have to dissipate over a larger volume compared to the lesser bright light. This is why the sensor will read a smaller value if you move the same source of light farther away from it, essentially increasing the amount of space that the same amount of light has to fill between the source and the sensor.

Here is a graphical relationship between the current (in µA) and illuminance of the immediate vicinity perceived by the sensor:



Interfacing TEMT6000 Ambient Light Sensor with Arduino

In the circuit diagram below the TEMT6000 light sensor & 16×2 LCD is interfaced with Arduino. This circuit is used to display the Light intensity in terms of percentage.

Interfacing TEMT6000 Ambient Light Sensor with Arduino

Connect VCC pin of TEMT6000 to Arduino 5V pins & GND to GND. Connect its SIG pin to Arduino Analog pin A0.

Similarly connect pin 1, 5, 16 of LCD to GND & 2, 15 to VCC. Use 10K Potentiometer at pin 3 of LCD to adjust the contrast of LCD. Similalry connect pin 4, 6, 11, 12, 13, 14 of LCD to Arduino 12, 11, 5, 4, 3, 2 pin.


Source Code: Measuring Light Intensity

The source code for interfacing TEMT6000 Ambient Light Sensor with Arduino is given below. The analog value is read from the SIG pin of light sensor using Arduino. Using some mathematical calculation the analog value is converted into light intensity as percentage.

TEMT6000 Arduino Light Intensity

C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int temt6000Pin = A0;
float light;
int light_value;
void setup() {
Serial.begin(115200);
lcd.begin(16, 2);
pinMode(temt6000Pin, INPUT); //data pin for ambientlight sensor
lcd.setCursor(0, 0);
lcd.print("Light Intensity");
}
 
void loop() {
int light_value = analogRead(temt6000Pin);
light = light_value * 0.0976;// percentage calculation
Serial.println(light);
lcd.setCursor(0, 1);
lcd.print(light);
lcd.print(" %");
delay(500);
}



Source Code: Measuring Illuminance

The source code for interfacing TEMT6000 Ambient Light Sensor with Arduino and Illuminance Measurementis given below. The analog value is read from the SIG pin of light sensor using Arduino. Using some mathematical calculation the analog value is converted into Illuminance.

Illuminance Measurement

C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
 
void setup()
{
Serial.begin(9600);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print("Illuminance");
}
 
void loop()
{
//lcd.clear();
float volts = analogRead(A0) * 5.0 / 1024.0;
float amps = volts / 10000.0; // across 10,000 Ohms
float microamps = amps * 1000000;
float lux = microamps * 2.0;
lcd.setCursor(0, 1);
lcd.print(lux);
lcd.print(" lux");
delay(750);
}


Video Tutorial

TEMT6000 Ambient Light Sensor & Arduino Interfacing | Illuminance & Light Intensity Measurement
Watch this video on YouTube.

You can check this post if you want to measure the UV Ray Intensity as well: UV Sensor ML8511.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit Telegram WhatsApp
Previous ArticleIoT Based ECG Monitoring with AD8232 ECG Sensor & ESP32
Next Article BME280 & Arduino Based Simple Weather Station

Related Posts

DC Energy Meter using Arduino

Build a DC Energy Meter using Arduino – 32V/5A

Updated:August 26, 20252K
Interfacing ADXL375 Accelerometer with Arduino

Interfacing ADXL375 Accelerometer with Arduino (±200g)

Updated:June 28, 2025
PZEM-004T Arduino Energy Meter

DIY AC Energy Meter using PZEM-004T & Arduino

Updated:March 6, 20258K
Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Updated:February 2, 20259K
Password Based Door Lock Security System Using Arduino & Keypad

Password Based Door Lock Security System Using Arduino & Keypad

Updated:February 2, 20252436K
Earthquake Detector Alarm with with Accelerometer & Arduino

Earthquake Detector Alarm with Accelerometer & Arduino

Updated:February 2, 2025661K
Add A Comment

CommentsCancel reply

Latest Posts

ESP32 Fingerprint Attendance System with Live Web Dashboard

June 14, 2026
IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

June 14, 2026
DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

May 10, 2026
IoT Activity Tracker with ESP32 & Accelerometer Gyroscope

IoT Activity Tracker with ESP32 & Accelerometer/Gyroscope

May 2, 2026
A Guide to Sourcing Obsolete ICs for Vintage Projects

Beyond AliExpress: A Guide to Sourcing Obsolete ICs for Vintage Projects

April 21, 2026

ESP32 IoT Vehicle Motion Analyzer with MPU6050 & LIS3MDL

April 27, 2026
Building a Smart Sensor Node with a BLE Microcontroller

Building a Smart Sensor Node with a BLE Microcontroller

February 26, 2026
High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

April 27, 2026
Top Posts & Pages
  • IoT Based PM & Air Quality Monitoring System using ESP32
    IoT Based PM & Air Quality Monitoring System using ESP32
  • 12V DC to 220V AC Inverter Circuit & PCB
    12V DC to 220V AC Inverter Circuit & PCB
  • How to use INA219 DC Current Sensor Module with Arduino
    How to use INA219 DC Current Sensor Module with Arduino
  • Buck Converter: Basics, Working, Design & Application
    Buck Converter: Basics, Working, Design & Application
  • High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU
    High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU
  • L293D Dual H-Bridge Motor Driver IC Pins, Circuit, Working
    L293D Dual H-Bridge Motor Driver IC Pins, Circuit, Working
  • IoT Based Electricity Energy Meter using ESP32 & Blynk
    IoT Based Electricity Energy Meter using ESP32 & Blynk
  • Designing of MPPT Solar Charge Controller using Arduino
    Designing of MPPT Solar Charge Controller using Arduino
Categories
  • Arduino Projects (197)
  • Articles (60)
    • Learn Electronics (19)
    • Product Review (15)
    • Tech Articles (28)
  • Electronics Circuits (46)
    • 555 Timer Projects (21)
    • Op-Amp Circuits (7)
    • Power Electronics (13)
  • IoT Projects (205)
    • ESP32 MicroPython (7)
    • ESP32 Projects (82)
    • ESP32-CAM Projects (15)
    • ESP8266 Projects (76)
    • LoRa/LoRaWAN Projects (22)
  • Microcontrollers (38)
    • AMB82-Mini IoT AI Camera (4)
    • BLE Projects (18)
    • STM32 Projects (19)
  • Raspberry Pi (93)
    • Raspberry Pi Pico Projects (57)
    • Raspberry Pi Pico W Projects (12)
    • Raspberry Pi Projects (24)
Follow Us
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
About Us

“‘How to Electronics’ is a vibrant community for electronics enthusiasts and professionals. We deliver latest insights in areas such as Embedded Systems, Power Electronics, AI, IoT, and Robotics. Our goal is to stimulate innovation and provide practical solutions for students, organizations, and industries. Join us to transform learning into a joyful journey of discovery and innovation.

Copyright © How To Electronics. All rights reserved.
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Looks like you're using an ad blocker. Please allow ads on our site. We rely on advertising to help fund our site.