-
Before booting your Raspberry Pi, connect the Passive Infrared (PIR) module to the Raspberry Pi.
-
Using three female-to-female jumper cables, you'll need to connect each of the PIR sensor's connectors to the appropriate pins on the Raspberry Pi.
-
Connect the top one labelled
VCC
on the PIR sensor to the 5V pin on the Raspberry Pi, connect the middle one labelledOUT
to GPIO pin 4, and connect the bottom one labelledGND
to a ground pin also markedGND
. All shown in the following diagram:
- Now boot your Pi and log in.