Interfacing PIR sensor module HC-SR501

Refer to Figure 6.15 for connection details:

Figure 6.15

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

Get Internet of Things with Raspberry Pi 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.