This project reads the ambient light level via the LDR and outputs the value to the Serial Monitor.
Parts Required
- Arduino Uno
- 10kΩ LDR
- 10kΩ resistor
- Breadboard and jumper wires
Assembly Instructions
- Connect one leg of the LDR to 5V.
- Connect the other leg of the LDR to A0 and also to one end of the 10kΩ resistor.
- Connect the other end of the 10kΩ resistor to GND.
This forms a voltage divider where the LDR and resistor divide the voltage based on light intensity.