https://iot-guider.com/arduino/interfacing-ldr-arduino/attachment/interfacing-ldr-in-arduino/
Interfacing LDR in Arduino