Refer to Figure 6.15 for connection details:
As shown in Figure 6.15:
- The ground terminal of the PIR sensor is connected to the ground pin of the Raspberry Pi GND (Pin 06)
- The output of the sensor is connected to GPIO 19 (pin 35) of the Raspberry Pi
- The Vcc terminal is connected to +5V (pin 04) of Raspberry Pi