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