Raspberry Pi Motion Detector is a Python script with which you can use Raspberry Pi and a PIR sensor as a motion detector.
Warnings:
Only Raspberry Pi OS Bullseye is supported.
Requirements:
Raspberry Pi
Any three-pin PIR sensor
Setup:
In the file pir.py edit poweroff_delay and check_delay to change the screen auto-off time and the delay between sensor polling, as well as pir_pin to the one you use for the sensor (BOARD type numbering)