Skip to main content
. 2022 May 3;22(9):3472. doi: 10.3390/s22093472

Figure 1.

Figure 1

HC-SR501 PIR sensor wired to the Raspberry Pi Zero W. The red wire connects the Vcc pin of the PIR sensor to the 5 V pin (PIN 2) of the Raspberry; the brown wire connects the Gnd pin of the PIR sensor to the ground pin (PIN 6) of the Raspberry; the orange wire connects the Out pin of the PIR sensor to a GPIO pin (PIN 13) of the Raspberry.