Shop by category
Shop all components
Infrared, ToF & LiDAR Distance Sensors · Generic
The HC-SR501 is a passive infrared (PIR) motion detector module featuring a wide 4.5-20V DC input range and a 3.3V TTL output, making it directly compatible with microcontrollers like Arduino, Raspberry Pi, and ESP32 for human presence detection in security and automation projects.
📖Guide for this partPIR Motion Sensor (HC-SR501)→Learn how this part works on ElectrolarkFree guide, circuit simulator and quizBuy 10 or more to pay ₹55.77 each
Business and institution accounts get extra tier pricing. Sign in for 100+ pieces.
Parts you need to use it, or that are built with it in our projects.
Overview
The HC-SR501 module integrates a pyroelectric infrared (PIR) sensor, signal conditioning circuitry, and a Fresnel lens to detect changes in infrared radiation caused by moving human bodies. The onboard potentiometers allow for precise adjustment of the sensing range and the output signal hold time, providing customization for different application environments.
Designed for reliability across a wide temperature range from -20°C to +80°C, the module outputs a high-level 3.3V TTL signal upon detection, which can directly drive opto-isolators, transistors, or microcontroller GPIO pins. Its compact form factor and low power profile make it suitable for embedded security systems, lighting control, and energy management projects.
Good for
Category
Infrared, ToF & LiDAR Distance SensorsSKU
GB-SENS-1961
| Brand / part no. | Generic |
|---|---|
| Weight | Approx. 10 g |
| Category | Infrared, ToF & LiDAR Distance Sensors |
| Model Number | HC-SR501 |
| Output Signal | 3.3V TTL (High/Low Level) |
| Detection Angle | 140° |
| Operating Voltage | DC 4.5V - 20V |
| Detection Distance | 3 m to 7 m (Adjustable) |
| Delay Time Adjustment | 5 s to 200 s |
| Operating Temperature | -20°C to +80°C |
| Dimensions (L x W x H) | 32 mm x 24 mm x 18 mm |
| Default Block/Repeat Time | ~2.5 s |
| Average Current Consumption | <60 µA |
Typical values from the manufacturer's datasheet. Confirm the exact variant before you build a product around it.
| VCC | Power, 5 V typical |
|---|---|
| OUT | Digital output, high on motion |
| GND | Ground |
Typical pin names. Boards from different makers can differ, so check the print on your module.
const int PIR = 2;
void setup() { pinMode(PIR, INPUT); pinMode(LED_BUILTIN, OUTPUT); Serial.begin(115200); }
void loop() {
bool motion = digitalRead(PIR);
digitalWrite(LED_BUILTIN, motion);
if (motion) Serial.println("Motion!");
delay(100);
}Used in 56 of our project guides, with wiring and code.
Weight: Approx. 10 g; Category: Infrared, ToF & LiDAR Distance Sensors; Model Number: HC-SR501; Output Signal: 3.3V TTL (High/Low Level); Detection Angle: 140°; Operating Voltage: DC 4.5V - 20V. The full list is under Specifications.
VCC: Power, 5 V typical; OUT: Digital output, high on motion; GND: Ground. These are the typical pin names shown under Pinout & wiring. Boards from different makers can differ, so check the print on your module.
It is used in 56 Geekobot projects, including Corridor and staircase light on motion after dark, Pi Zero motion night light and Meeting room occupied sign. Each project has the parts list, wiring and code.
Yes. Prices include GST and every order comes with a GST invoice. Add your GSTIN at checkout and we put it on the invoice for input credit.
Delivery is a flat ₹80 anywhere in India, and free on orders over ₹999. We ship from our Bengaluru and Guwahati warehouses, whichever is nearer to you, and the product page shows an estimated delivery date for your PIN code.
Yes, on eligible PIN codes for orders up to ₹5,000. A ₹150 COD charge is added at checkout, and checkout shows whether COD is available for your order. You can also pay by UPI, card or net banking.
Yes, if it arrives damaged, defective or is not what you ordered: tell us within 7 days of delivery and we collect it free and send a replacement or a full refund. We do not take back parts that are not faulty, so check the specs or ask us before you order. You can cancel for free until the order is dispatched.
Yes. The price per unit drops automatically at higher quantities, as shown in the price tiers above. For 100+ pieces or a purchase order, ask for a bulk quote.
Check the specifications for voltage and interface, or ask Geeko AI. It can suggest compatible boards and wiring.
Guides for this part and its category.
All guides →No reviews yet. Bought or built with this? Be the first to review it.