A passive infrared sensor (PIR sensor) is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. They are most often used in PIR-based motion detectors.
Arduino schema ( you can also use an other compatible controller )
Trim settings
Result :