https://iot-guider.com/raspberrypi/interfacing-light-dependent-resistor-ldr-in-raspberry-pi/
Interfacing Light Dependent Resistor LDR in Raspberry Pi