HC-SR501 PIR Sensor Features
The HC-SR501 Infrared Motion Sensor is an effective, inexpensive module that can detect motion in the environment. The small size and physical design of this module allows you to easily use it in your project.
The output of this sensor can be connected directly to one of the Arduino digital pins, and if any movement is detected by the sensor, the value of this pin would be 1. The two potentiometers on the board allow you to adjust the sensitivity and waiting time for delay after detecting a move.
HC-SR501 PIR Sensor Pinout
This module has 3 pins:
- VCC: Module power supply – 5V
- GND: Ground
- OUT: Output digital data to microcontroller
You can see pinout of this module in the image below.
You can download the datasheet of this module here.
Interfacing HC-SR501 PIR Sensor with Arduino
Step 1: Circuit
Step 2: Code