

Pick up your orders anytime, hassle-free!
Orders placed by 2:00 PM are shipped the same day. Delivered within 24h!
Reliable products, worry-free!
Unused items? No questions asked!
Basic breakout board for the TEMT6000 Ambient Light Sensor. Only what you need, nothing you don't. Sensor acts like a transistor - the greater the incoming light, the higher the analog voltage on the signal pin.
For this example you'll need:
1 x TEMT6000 Ambient Light Sensor | Reference: BZJVJR_TEMT6000
1 x Development board UNO R3 Arduino compatible | Reference: TXVMOK_DB-UNO-R3
wires for electrical connections
#define LIGHT_SENSOR A0 // define input pin
void setup() {
Serial.begin(9600);
}
void loop() {
int Lvalue = analogRead(LIGHT_SENSOR);// read the light
int mVolt = map(Lvalue,0, 1023, 0, 5000);// map analogue reading to 5000mV
int percent = map(Lvalue,0, 1023, 0, 100);// map analogue reading to 100%
float volt =(double)mVolt/1000;// convert millivolt to volt
Serial.print(mVolt);// print millivolt
Serial.print( "mV ...... ");
Serial.print(volt,3);// print volts with 3 decimal places
Serial.print( "V ...... ");
Serial.print(percent);// print percentage
Serial.println( "%");
delay(1000);// wait for 1000 milliseconds
}
The signal on A0 pin is transformed into values in Serial Monitor relatively to 5V from VCC.
1 x Ambient light sensor module TEMT6000
1 x 3 Pin male header
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent
Write your review
Review sent
Your review cannot be sent
Reference: RKHRSU_Microphone-module
Reference: ZJNKLW_LJ12A3-4-Z/BX
Reference: OGVWKS_ADS1015
Reference: GJJFDR_DHT11-module
Reference: 2Y0A02
check_circle
check_circle