https://embetronicx.com/tutorials/microcontrollers/8051/pir-sensor-interfacing-with-8051/
PIR Sensor Interfacing with 8051