What is a PIR sensor?
As we know, the PIR sensor is a practical sensor that is often used in motion detection. Both ends of the reed relay are normally open. When a magnetic object approaches the reed relay, this effect causes the contacts of the reed relay in the glass tube to touch and short both ends.
Raspberry Pi – Reed relay and PIR sensor circuit: