Refer to Figure 6.16 for connection details:
Figure 6.16
In Figure 6.16:
- The O/P terminal of the sensor is connected to GPIO 05 (pin 29) of Raspberry Pi
- The GND terminal of the sensor is connected to GND (pin 06) of Raspberry Pi
- The Vcc terminal of the sensor is connected to +5V (pin 04) of Raspberry Pi