Picture of Automatic light with light sensor in Arduino
What do we need:

1 x Arduino UNO
1 x  LDR
1 x LED

Led is in pin 13 because it has a resistor included for smd LED, if you want to use another pin, use 120 ohm resistors to protect Arduino board and leds.
Remove these adsRemove these ads by Signing Up

Step 1:

Picture of