How to use the PIR motion sensor on Raspberry PI 4
Could you explain to me how to connect the PIR motion sensor to a Raspberry Pi and also how to use it?
PIR sensors have three pins: one for power supply (VCC), another for the output of an electrical signal (OUT), and another to connect it to ground (GND).
Although they work with 5 volts, the electrical pulse output is only 3.3 volts, so you will not need to use a resistor.
To learn more about the PIR motion sensor, check out this tutorial: