Component guide · Beginner · 5 min read
Mini PIR Motion Sensor Modules

MH-SR602, HC-SR505, Grove, Crowtail, M5Stack, DFRobot, Senba SB412A / SB612A, Winsen ZRD-09)
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Mini PIR modules detect a person moving and set an output pin high, with no adjustment needed on most. The MH-SR602 and HC-SR505 are tiny and run from 3.3 V upwards, plug-in versions from Grove, Crowtail, M5Stack, DFRobot and ACEBOTT use cables, and the Senba SB412A and SB612A add knobs for delay, range and light level. They are ideal for battery and smart-home projects.
Key specs at a glance
- Supply
- About 2.7 to 12 V (MH-SR602 3.3 to 15 V, HC-SR505 4.5 to 20 V)
- Output
- Digital high on motion (3.3 V level on most)
- Range
- About 2 to 8 m
- Hold time
- About 2 to 8 s fixed, or adjustable on SB612A
- Idle current
- Tens of microamps on low-power modules
- Warm-up
- About 10 to 60 s after power-on
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1MH-SR602 Mini PIR Motion Sensor Module – 3-5m Range, 3.3-15V DC₹81
Option 2HC-SR505 Mini PIR Motion Sensor Infrared Detector Module₹66
Option 3Seeed Studio Grove Mini PIR Motion Sensor v1.0 – 3.3V/5V, Adjustable Sensitivity, 2m Range₹709
Option 4Elecrow Crowtail PIR Motion Sensor – 3-5V, 120° Angle, Max 6m Range₹319
Option 5Elecrow Crowtail- Mini PIR Motion Sensor 2.0 – Crowtail Interface₹729
Option 6HS-S38-L Human Body Sensor Module – PIR Motion Detector, 3.3V/5V, PH2.0 Connector₹202
What the Mini PIR motion sensor modules is
Mini PIR motion sensor modules such as the AM312 and SR602 are tiny passive infrared sensors that detect warm bodies moving and output a digital HIGH, ideal for battery projects.
The output goes high while motion continues and drops after the hold time. Wait for the warm-up after power-on, during which the output may toggle.
Low-power modules like the MH-SR602 suit coin-cell and deep-sleep ESP32 projects: wake the ESP32 on the PIR pin.
Mini PIR motion sensor modules pinout
The pins on the Mini PIR motion sensor modules and what each one does.
| Pin | Function |
|---|---|
| VCC / + | Supply |
| OUT / SIG | Digital output |
| GND / - | Ground |
- VCC / +
- Supply
- OUT / SIG
- Digital output
- GND / -
- Ground
Wiring the Mini PIR motion sensor modules
Connect the Mini PIR motion sensor modules like this.
| Mini PIR motion sensor modules pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5 V | 3.3 V or 5 V |
| GND | GND | GND |
| OUT | D2 | GPIO 27 |
- VCC
- Arduino Uno:
- 5 V
- ESP32:
- 3.3 V or 5 V
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- OUT
- Arduino Uno:
- D2
- ESP32:
- GPIO 27
Example code
A minimal sketch to check the part works.
const int PIR = 2, LIGHT = 7;
unsigned long last = 0;
void setup() { pinMode(PIR, INPUT); pinMode(LIGHT, OUTPUT); delay(30000); }
void loop() {
if (digitalRead(PIR)) last = millis();
digitalWrite(LIGHT, millis() - last < 30000 ? HIGH : LOW);
}Setup and tuning
VCC 2.7 to 12 V (check model), GND, and OUT to a digital pin.
wait about 30 to 60 s after power-up before trusting triggers.
the output stays HIGH for a fixed time (about 2 s on AM312).
about 3 to 5 m; mount at chest height.
draws only tens of µA, perfect for wake-on-motion.
What you need
Shop this list19 of 20 found in our store · ₹6,188
Generic MH-SR602 Mini PIR Motion Sensor Module – 3-5m Range, 3.3-15V DC: the part this guide coversMH-SR602 Mini PIR Motion Sensor Module – 3-5m Range, 3.3-15V DC₹81
HC-SR505 Mini PIR Motion Sensor Infrared Detector Module: another version this guide coversHC-SR505 Mini PIR Motion Sensor Infrared Detector Module₹66
Seeed Studio Studio Grove Mini PIR Motion Sensor v1.0 – 3.3V/5V, Adjustable Sensitivity, 2m Range: another version this guide coversSeeed Studio Grove Mini PIR Motion Sensor v1.0 – 3.3V/5V, Adjustable Sensitivity, 2m Range₹709
Elecrow Crowtail PIR Motion Sensor – 3-5V, 120° Angle, Max 6m Range: another version this guide coversElecrow Crowtail PIR Motion Sensor – 3-5V, 120° Angle, Max 6m Range₹319
Elecrow Crowtail- Mini PIR Motion Sensor 2.0 – Crowtail Interface: another version this guide coversElecrow Crowtail- Mini PIR Motion Sensor 2.0 – Crowtail Interface₹729
Generic HS-S38-L Human Body Sensor Module – PIR Motion Detector, 3.3V/5V, PH2.0 Connector: another version this guide coversHS-S38-L Human Body Sensor Module – PIR Motion Detector, 3.3V/5V, PH2.0 Connector₹202
Generic HS-S38A Human Body Sensor Module – PIR Motion Detector: another version this guide coversHS-S38A Human Body Sensor Module – PIR Motion Detector₹153
HS-S38P Human Body Sensor Module – PIR Motion Detector: another version this guide coversHS-S38P Human Body Sensor Module – PIR Motion Detector₹181
ACEBOTT PIR Motion Sensor Easy-Plug – 0-4m Detection, 3.3-5V DC: another version this guide coversACEBOTT PIR Motion Sensor Easy-Plug – 0-4m Detection, 3.3-5V DC₹359
DFRobot Gravity Digital Infrared Motion Sensor for Arduino – 5V, 7m Range, 110° Angle: another version this guide coversDFRobot Gravity Digital Infrared Motion Sensor for Arduino₹536
M5Stack PIR Motion Sensor Module for Smart Devices – 500cm Range, 2s Latency, Grove B Interface: another version this guide coversM5 STACK PIR Motion Sensor Module for Smart Devices₹635
Winsen ZRD-09 Human PIR Motion Sensor Module – 5-20V DC, 100° Angle: another version this guide coversWinsen ZRD-09 Human PIR Motion Sensor Module – 5-20V DC, 100° Angle₹186
Senba SB312A PIR Sensor Module – Digital Output, 3-12V DC: another version this guide coversSenba SB312A PIR Sensor Module – Digital Output, 3-12V DC₹379
Senba SB412A PIR Motion Sensor Module w/ AM412 Sensor – 2s-80min Delay, 3-12V DC: another version this guide coversSenba SB412A PIR Motion Sensor Module w/ AM412 Sensor – 2s-80min Delay, 3-12V DC₹279
Senba SB612-02-0001-L PIR Human Motion Sensor Module – Metal Casing, 8m Range: another version this guide coversSenba SB612-02-0001-L PIR Human Motion Sensor Module – Metal Casing, 8m Range₹229
Senba SB612A Smart Motion Module with Adjustable Lux, Delay Time & Distance – PIR Sensor Module: another version this guide coversSenba SB612A Smart Motion Module with Adjustable Lux, Delay Time & Distance – PIR Sensor Module₹479
Senba SB612A-02-001-L PIR Motion Sensor Module – 8m Range, 115° Angle, 3.8-12V DC: another version this guide coversSenba SB612A-02-001-L PIR Motion Sensor Module – 8m Range, 115° Angle, 3.8-12V DC₹449
Senba S9008 Mini PIR Plastic Housing Motion Sensor Fresnel Lens Dia 23mm: another version this guide coversSenba S9008 Mini PIR Plastic Housing Motion Sensor Fresnel Lens Dia 23mm₹33
Generic D203S Human Infrared Motion Detection Module – Digital Output: another version this guide coversD203S Human Infrared Motion Detection Module – Digital Output₹184- Uno R3 development board: the controller used in the wiring tableFind this part
Alternatives and when to choose them
- HC-SR501 module: bigger, adjustable delay and range.
- AM312 PIR: another tiny PIR.
- PIR sensor elements: bare sensors to design with.
Common mistakes to avoid
- Pointing it through a window.
- Trusting triggers during warm-up.
- Mounting near heaters.
- Expecting adjustable range.
Frequently asked questions
How is the AM312 different from the HC-SR501?
It is smaller, uses less power and has no adjustments.
Why does it trigger at power-up?
PIR sensors need 30 to 60 seconds to settle after power-up; ignore triggers until then.
Can it see through glass?
No. Window glass blocks the body-heat infrared a PIR looks for.
Is the output safe for ESP32?
Yes. The output is about 3.3 V, so it is safe for ESP32 and Pico pins.
Can I change the hold time?
Not on the AM312; keep the light or alarm on for longer in your code.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.







