This project automatically controls an LED based on light intensity using an LDR sensor and Arduino Uno.
- Arduino Uno
- LDR (Light Dependent Resistor)
- LED
- Resistors (10kΞ©, 220Ξ©)
- Breadboard and wires
LDR and resistor form a voltage divider connected to A0. LED is connected to pin 13 through a resistor.
- LDR senses light intensity
- Arduino reads analog values (0β1023)
- Dark β LED ON
- Bright β LED OFF
See code.ino file
- Cover LDR β LED ON
- Shine light β LED OFF
After uploading the code, Arduino runs independently using a power supply.
- Street lights
- Garden lighting
- Smart homes
- Low cost
- Energy efficient
- Easy to build
(Add your circuit images here)