Arduino Ldr Kodu. Four 1k and one 10k resistor. When light falls upon it then the resistance changes.

Attach the 10k resistor to one of the legs of the ldr. The setup is very simple. Ldr down rigt top right void setup serialbegin9600.
Print ldr value is.
The arduino with its built in adc analog to digital converter then converts the. Int inputval 0. More is the light lesser is the resistance. Codearduino the program prints the value of ldr to serial monitor const int ldr a0.