https://embetronicx.com/tutorials/microcontrollers/pic16f877a/ldr-sensor-interfacing-with-pic16f877a/
LDR Sensor Interfacing with PIC16F877A