![TEMT6000 Ambient Light Sensor TEMT6000 Ambient Light Sensor](https://ardushop.ro/9809-large_default/temt6000-ambient-light-sensor.jpg)
![TEMT6000 Ambient Light Sensor TEMT6000 Ambient Light Sensor](https://ardushop.ro/9809-large_default/temt6000-ambient-light-sensor.jpg)
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: BOQWRO_HX711
check_circle
check_circle