Detecting a light or making a switch using Photoresistor interface with Arduino.
Electronic Components Required
Arduino UNO/MEGA/PRO
1x LED
1x 220k Ohm Resistor
1x 10k Resistor
1x LDR(Photo resistor)
[crayon-674f5a422326e518710564/]
Download the source code here | 14Core Light Detection
Starter #9 Light Detection with (LDR) Light-Dependent Resistor with Arduino