#11Beginner
Reading Light Intensity with Ldr
4.7(76)
112 completed

Project that measures ambient light intensity with LDR sensor and displays it on Serial Monitor. Teaches the basics of analog sensor reading and serial communication.
Video
Circuit Diagram

Source Code
1int value;
2
3void setup() {
4 Serial.begin(9600);
5}
6
7void loop() {
8 value = analogRead(A0);
9 Serial.print("Value: ");
10 Serial.println(value);
11 delay(500);
12}