https://diyprojectslab.com/pir-sensor-with-raspberry-pi/
Interface PIR Sensor With Raspberry PI - Tutorial