The HC-SR501 PIR Motion Sensor is one of the most widely used motion detection modules in electronics and DIY automation projects. It's super easy to use and works great with Arduino, Raspberry Pi, ESP32, and other microcontrollers.
The sensor detects infrared (IR) radiation changes in its field of view. When a warm object (like a human or pet) moves, the sensor triggers a HIGH signal on its output pin.
Operating Voltage 5V – 20V DC
Output Voltage 3.3V (HIGH), 0V (LOW)
Detection Range 3 – 7 meters (adjustable)
Detection Angle 120 degrees
Delay Time Adjustable (approx. 5s – 300s)
Trigger Modes Repeatable (default) & Non-repeatable
Board Size 32mm x 24mm
Adjustable Settings:
int pirPin = 2; // Connect OUT pin here int ledPin = 13; void setup() { pinMode(pirPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { if (digitalRead(pirPin) == HIGH) { digitalWrite(ledPin, HIGH); Serial.println("Motion Detected!"); } else { digitalWrite(ledPin, LOW); } delay(100); }
Origin: China
Brand: Generic