Best PIR Motion Sensors for ESP32: 9 Adafruit, SparkFun, Seeed Grove, DFRobot and HC-SR501 Picks Compared (Buying Guide)

⚠️ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
ESP32 Sensor Buying Guide

🚢 Best PIR Motion Sensors for ESP32

Wake your ESP32 when someone walks in. Here are 9 motion sensors, from the classic Adafruit PIR and tiny mini modules to Qwiic I2C boards, a presence sensor that sees people sitting still and a microwave radar alternative.

βœ… 9 Sensors Compared βœ… Verified Amazon ASINs βœ… ESP32 Wiring and Sleep Tips βœ… Honest Pros & Cons

A PIR (passive infrared) sensor watches for changes in the heat pattern in front of its Fresnel lens. When a warm body moves across its zones, the output pin goes HIGH. That makes it the simplest way to give an ESP32 project motion awareness: hallway lights, a doorbell camera trigger, a battery alarm node or an ESPHome occupancy sensor for Home Assistant. It is also one of the best deep sleep wake sources you can use, because a PIR output can drive an RTC GPIO and wake the chip with esp_sleep_enable_ext0_wakeup() while the ESP32 itself draws only microamps.

The catch is that not all PIR boards suit a 3.3V chip. Some need 5V on their supply pin, some draw far too much idle current for a battery node, and every classic PIR goes quiet when a person sits still. This guide compares 9 motion sensors on supply voltage, output level, range, idle current and how easily they plug into an ESP32, so you can pick the right one for the job.

πŸ’‘ Before you buy: A PIR sensor detects movement, not presence. Someone reading on the sofa will eventually “disappear”, so for room occupancy pair a PIR with a longer hold time in software, or look at the STHS34PF80 below or an mmWave radar. Most PIR modules also need 30 to 60 seconds to settle after power-up and will false-trigger during that time, so ignore the first minute of readings. Finally, check the supply range: several popular boards want 5V on VCC even though their output is a safe 3.3V for ESP32 GPIO.

⚑ Quick Comparison: All 9 Motion Sensors

SensorSupplyOutputRange / AngleIdle CurrentBest ForBuy
πŸ₯‡ Adafruit PIR 1895 to 12V3.3V digitalAbout 7 m, 120Β°Not statedBest Overall for ESP32Buy Here β†’
πŸ… SparkFun Qwiic PIR3.3V (Qwiic)I2C events5 m, 90Β° x 90Β°170Β΅ABest I2C / Qwiic PIRBuy Here β†’
πŸ›‹οΈ SparkFun STHS34PF801.7 to 3.6VI2C / SPI + INT4 m, 80Β° FOVAbout 10Β΅ABest for Still PeopleBuy Here β†’
🀏 Adafruit Mini PIR 48713 to 12V3.3V digital2 to 5 m, 100Β°Not statedBest Compact PIRBuy Here β†’
πŸ”Œ Seeed Grove PIR3 to 5VDigital (SIG)Up to 6 m, 120Β°Not statedBest Plug-and-PlayBuy Here β†’
⏱️ Seeed Grove Adjustable PIRGrove 3.3/5VDigital (SIG)Up to 3 m, 110Β° x 90Β°Not statedBest Long Hold TimeBuy Here β†’
πŸ“‘ DFRobot SEN0192 Radar5VDigital2 to 16 m, 72Β° x 36Β°37mA typ.Best Non-PIR AlternativeBuy Here β†’
πŸ’° DIYables HC-SR5015V class3.3V digitalUp to about 7 mLowBest Budget ClassicBuy Here β†’
πŸ”¦ Oiyagai HC-SR5055V class3.3V digitalAbout 3 mLowBest Tiny Budget TriggerBuy Here β†’

πŸ” What Matters in an ESP32 Motion Sensor

πŸ”‹

Supply Voltage

Boards with an onboard regulator often need 5V or more on VCC. Power those from the dev board’s 5V or VIN pin, or choose a 3.3V-native board like the Qwiic or Grove sensors.

πŸ”Œ

Output Level

ESP32 GPIO is not 5V tolerant. Most PIR modules output 3.3V logic, which is ideal, but check before wiring a radar or unknown clone straight to a pin.

😴

Idle Current

For a battery node the sensor stays on while the ESP32 sleeps. A sensor drawing tens of microamps lasts months; one drawing tens of milliamps drains a pack in days.

πŸ“

Range and Field of View

Wide 120Β° lenses suit rooms and porches. Narrower 90Β° to 100Β° lenses suit doorways, desks and cabinets where you want fewer false triggers.

⏱️

Hold Time and Retrigger

Adjustable delay pots set how long the output stays HIGH. Short holds suit counting and cameras; long holds suit lights. You can always extend it in firmware.

πŸ† Detailed Reviews: The Top Two

πŸ₯‡ BEST OVERALL FOR ESP32

1. Adafruit PIR (Motion) Sensor (189)

⭐ 4.7/5 · Our Rating · The Reliable Classic
5 to 12V
SUPPLY
3.3V
DIGITAL OUTPUT
About 7 m
RANGE
120Β°
DETECTION CONE
Buy on Amazon β†’
Adafruit PIR motion sensor 189 with Fresnel lens for ESP32

Adafruit’s PIR (motion) sensor is the one we’d reach for first. It runs from 5 to 12V, so you power it from your dev board’s 5V or VIN pin, yet its output is a clean 3.3V high/low signal that goes straight into any ESP32 GPIO with no level shifter. Adafruit quotes a range of about 7 m across a 120Β° cone, with onboard pots for sensitivity and delay (about 2 to 4 seconds of hold time by default), and it ships with a 30 cm 3-wire cable and two mounting holes. The bigger win is the support: Adafruit’s PIR learning guide explains the retrigger jumper, settling time and lens behaviour better than any clone listing. If you need it on a pure 3.3V supply, the guide also shows how to bypass the regulator, though that needs soldering.

βœ… Pros
  • 3.3V output safe for ESP32 GPIO
  • Wide 120Β° detection cone
  • Adjustable sensitivity and delay
  • Excellent documentation
❌ Cons
  • Needs 5V or more on VCC
  • Larger than mini modules
  • Idle current not published
🎯 Verdict: The best all-round PIR for ESP32 motion projects. Wire VCC to 5V, OUT to an RTC GPIO and you have a dependable wake trigger.

πŸ‘‰ Check Price on Amazon β†’

πŸ… BEST I2C / QWIIC PIR

2. SparkFun Qwiic PIR 170uA (EKMC4607112K)

⭐ 4.6/5 · Our Rating · No Wiring Mistakes
170Β΅A
STANDBY CURRENT
5 m
RANGE
90Β° x 90Β°
DETECTION AREA
2x Qwiic
I2C 0x12
Buy on Amazon β†’
SparkFun Qwiic PIR 170uA EKMC4607112K motion sensor for ESP32

The SparkFun Qwiic PIR pairs a genuine Panasonic EKMC4607112K PIR element with an ATtiny84 that handles debouncing and reports motion events over I2C at address 0x12 (0x13 via a solder jumper). That means no analog-style trimmer guessing and no 5V rail: plug a Qwiic cable into an ESP32 board with a Qwiic or STEMMA QT port and read it from SparkFun’s Arduino library. The Panasonic element is far more consistent than BISS0001 clones, covering 5 m over a 90Β° x 90Β° area with 32 detection zones, and the board idles at about 170Β΅A. Daisy-chain it with other Qwiic sensors on the same two wires, which makes it a great fit for compact ESPHome or multi-sensor nodes.

βœ… Pros
  • Panasonic PIR element, fewer false triggers
  • I2C with debounced events
  • Qwiic plug-in, no soldering
  • Two addresses for two sensors
❌ Cons
  • Shorter 5 m range
  • No hardware wake pin without the library
  • Narrower view than 120Β° modules
🎯 Verdict: The cleanest way to add motion to a Qwiic or STEMMA QT ESP32 build, with better quality optics than any budget module.

πŸ‘‰ Check Price on Amazon β†’

πŸ”§ Detailed Reviews: More Motion Sensors Worth Buying

πŸ›‹οΈ BEST FOR STILL PEOPLE Β· ⭐ 4.5/5

3. SparkFun Human Presence and Motion Sensor STHS34PF80 (Qwiic)

ST STHS34PF80 Β· 1.7 to 3.6V Β· I2C / SPI Β· INT pin Β· 4 m Β· 80Β° FOV Β· about 10Β΅A Β· 1 x 1 inch Β· 2x Qwiic
Buy Here β†’
SparkFun STHS34PF80 Qwiic human presence and motion sensor for ESP32

This is the answer to the classic PIR problem of people vanishing when they sit still. ST’s STHS34PF80 is a thermal infrared sensor with built-in presence and motion algorithms, so it can report a person who is reading at a desk as well as someone walking past. It runs natively at 1.7 to 3.6V, draws only about 10Β΅A, talks I2C (0x5A) or SPI, and has an interrupt pin you can route to an ESP32 RTC GPIO for wake-ups. SparkFun quotes about 4 m of range with an 80Β° field of view, and the Qwiic ports make wiring trivial. It takes more code than a simple PIR, and SparkFun’s own store has shown it out of stock at times, so check the Amazon listing.

βœ… Pros: Detects stationary people; native 3.3V; tiny idle current; Qwiic.
❌ Cons: Needs a library and tuning; shorter range; more expensive than a PIR.
🎯 Verdict: The best pick for desk, bed and room occupancy where a normal PIR keeps timing out.
🀏 BEST COMPACT PIR · ⭐ 4.4/5

4. Adafruit Breadboard-Friendly Mini PIR (4871)

3 to 12V Β· 3.3V digital out Β· about 2 s hold Β· 2 to 5 m Β· 100Β° Β· 13.8 mm lens Β· 3-pin header
Buy Here β†’
Adafruit breadboard-friendly mini PIR motion sensor 4871 for ESP32

When space is tight, Adafruit’s mini PIR is barely bigger than its 13.8 mm lens and plugs straight into a breadboard with a 3-pin header (GND, OUT, VCC). Its onboard regulator accepts 3 to 12V, so it runs directly from the ESP32’s 3.3V pin, and the output is 3.3V logic that goes HIGH on motion and stays high for about 2 seconds. Adafruit quotes a focused 2 to 5 m range with a 100Β° spread, which suits doorways, cabinets and wearables better than a wide room sensor. There are no sensitivity or delay pots, so handle hold time in your firmware.

βœ… Pros: Very small; runs on 3.3V; breadboard friendly; cheap.
❌ Cons: No adjustment pots; short fixed hold; shorter range.
🎯 Verdict: The best tiny PIR for ESP32-C3, XIAO and other small boards where a full-size dome won’t fit.
πŸ”Œ BEST PLUG-AND-PLAY Β· ⭐ 4.4/5

5. Seeed Studio Grove PIR Motion Sensor

BISS0001 Β· 3 to 5V Β· digital SIG Β· up to 6 m (3 m default) Β· up to 120Β° Β· 0.3 to 25 s hold Β· Grove Β· 20 x 40 mm
Buy Here β†’
Seeed Studio Grove PIR motion sensor module for ESP32

If your ESP32 board or shield has Grove ports, like the Seeed XIAO ESP32 boards with a Grove expansion base, the Grove PIR Motion Sensor is the quickest way in: one cable, no breadboard. It accepts 3 to 5V, so 3.3V operation is fine, and the SIG line goes HIGH on motion. Two potentiometers set range (up to 6 m, 3 m by default) and hold time (0.3 to 25 seconds), with a detection angle of up to 120Β°. It uses the same BISS0001 controller as most hobby PIRs, and Seeed’s wiki has ready-made Arduino examples.

βœ… Pros: Grove plug-in; works at 3.3V; adjustable range and delay; good wiki.
❌ Cons: Grove cable or adapter needed on non-Grove boards; idle current not published.
🎯 Verdict: The best plug-and-play PIR for Grove and XIAO-based ESP32 builds.
⏱️ BEST LONG HOLD TIME · ⭐ 4.3/5

6. Seeed Studio Grove Adjustable PIR Motion Sensor

Digital SIG Β· up to 3 m Β· 110Β° x 90Β° Β· hold time adjustable up to 130 s Β· Grove cable included Β· 20 x 40 mm
Buy Here β†’
Seeed Studio Grove adjustable PIR motion sensor for ESP32

The Grove Adjustable PIR trades range for a much longer hold time. Its potentiometer sets how long SIG stays HIGH, up to about 130 seconds, which is handy when you want a light or relay to stay on without writing any timer code. Seeed lists a range of up to 3 m with a 110Β° x 90Β° field, so it’s best for small rooms, closets, stairs and desks rather than a garden. It includes a Grove cable and works with Arduino and Raspberry Pi as well as ESP32.

βœ… Pros: Long hardware hold time; compact; Grove cable included.
❌ Cons: Short 3 m range; supply range not clearly listed.
🎯 Verdict: The best pick when you want the sensor itself to keep a light or relay on for a minute or two.
πŸ“‘ BEST NON-PIR ALTERNATIVE Β· ⭐ 4.2/5

7. DFRobot Gravity Digital Microwave Sensor (SEN0192)

10.525 GHz Doppler radar Β· 5V Β· digital out Β· 2 to 16 m adjustable Β· 72Β° x 36Β° Β· 37mA typ. Β· Gravity 3-pin
Buy Here β†’
DFRobot Gravity SEN0192 10.525GHz microwave motion sensor for ESP32

Not a PIR at all, but worth knowing about. DFRobot’s SEN0192 is a 10.525 GHz microwave Doppler sensor, so it detects movement through thin plastic enclosures, works in hot rooms where PIR contrast drops, and reaches an adjustable 2 to 16 m. The trade-offs are real: it needs a 5V supply, draws about 37mA while working (so it’s mains-only, not battery), and radar also picks up moving curtains, fans and people on the other side of thin walls. Check the output level with a multimeter before connecting it to an ESP32 pin, and use a divider if it reads above 3.3V.

βœ… Pros: Sees through plastic; long adjustable range; ignores temperature.
❌ Cons: Needs 5V; high current; more false triggers from fans and walls.
🎯 Verdict: The best alternative when a PIR has to hide inside an enclosure or watch a long driveway.

βž• Also Worth Considering

πŸ’° BEST BUDGET CLASSIC

8. DIYables HC-SR501 PIR Module (2-Pack)

The HC-SR501 is the PIR module in nearly every starter kit, and this two-pack from DIYables is a cheap way to experiment. It has pots for sensitivity and delay plus a jumper for single or repeat triggering, and its output is 3.3V logic that suits ESP32 GPIO. Like most clones it is designed around a 5V supply, so power it from the 5V or VIN pin. Quality varies between batches, so buying two gives you a spare.

Buy Here β†’
πŸ”¦ BEST TINY BUDGET TRIGGER

9. Oiyagai HC-SR505 Mini PIR (2-Pack)

The HC-SR505 is a small, no-adjustment PIR in a cylindrical lens, sold here as a two-pack. It has a fixed hold time of several seconds and a shorter range of around 3 m, which is fine for a doorway, drawer or cupboard trigger. With only three pins and no pots it is easy to hide inside a project box, but you can’t tune it, so handle debouncing and timing in your ESP32 code.

Buy Here β†’

πŸ“‹ Which Sensor for Which ESP32 Job?

ESP32 ProjectRecommended Pick
Battery motion alarm with deep sleep wakeAdafruit PIR 189 or SparkFun Qwiic PIR
Home Assistant room occupancy (people sitting still)SparkFun STHS34PF80
Hallway or stair light that stays onSeeed Grove Adjustable PIR
Doorbell camera or ESP32-CAM triggerAdafruit PIR 189
Tiny ESP32-C3 or XIAO wearableAdafruit Mini PIR 4871
Classroom or Grove starter buildSeeed Grove PIR
Sensor hidden inside a plastic enclosureDFRobot SEN0192 Radar
Cheap experiments and spare partsDIYables HC-SR501 or Oiyagai HC-SR505

πŸ›’ Which One Should You Buy?

🏠

Your first motion project

The Adafruit PIR 189: 3.3V output, wide view and the best documentation.

🧩

A Qwiic or STEMMA QT setup

The SparkFun Qwiic PIR for motion, plus the STHS34PF80 if you need presence.

πŸ›‹οΈ

Occupancy that doesn’t time out

The SparkFun STHS34PF80, or one of the mmWave sensors in our presence guide.

πŸ“¦

Inside a sealed box

The DFRobot SEN0192 radar, on a mains-powered 5V supply.

❓ Frequently Asked Questions

Can I connect a PIR sensor directly to an ESP32?

Usually yes. Most PIR modules, including the Adafruit, HC-SR501 and Grove boards, output 3.3V logic even when powered from 5V, so OUT can go straight to a GPIO. Power VCC from the 5V or VIN pin if the module needs 5V, share GND, and measure the output with a multimeter first if you’re using an unknown clone or a radar module.

How do I wake an ESP32 from deep sleep with a PIR sensor?

Wire the PIR output to an RTC-capable GPIO (on the classic ESP32, pins such as GPIO 25, 26, 27, 32, 33 or 34 to 39) and call esp_sleep_enable_ext0_wakeup(pin, 1) before esp_deep_sleep_start(). The ESP32 wakes when the output goes HIGH. On the ESP32-C3 and other newer chips use the GPIO wakeup API for deep sleep instead.

Why does my PIR sensor trigger randomly?

The usual causes are the 30 to 60 second warm-up period, a noisy or sagging supply, Wi-Fi transmit interference on long unshielded wires, and heat sources such as heaters, sunlight or air vents in the field of view. Add a capacitor across the supply, keep the wires short, aim away from heat sources and ignore triggers for the first minute after boot.

Why does a PIR sensor stop detecting me when I sit still?

A PIR only responds to changes in infrared, so a still person becomes part of the background. Use a longer hold time and retrigger mode for lights, or choose a presence sensor like the STHS34PF80 or an mmWave radar when you need to know that someone is still in the room.

Do PIR sensors work through glass or plastic?

No. Ordinary glass and most plastics block the long-wave infrared a PIR relies on, so the lens must see the room directly through a hole in your enclosure. If the sensor has to stay hidden, a microwave radar such as the DFRobot SEN0192 can detect motion through thin plastic.

🏁 Final Verdict: Best PIR Motion Sensors for ESP32

The right sensor for each job:

πŸ₯‡ Best Overall for ESP32: Adafruit PIR 189
Buy Here β†’
πŸ… Best I2C / Qwiic PIR: SparkFun Qwiic PIR
Buy Here β†’
πŸ›‹οΈ Best for Still People: SparkFun STHS34PF80
Buy Here β†’
🀏 Best Compact PIR: Adafruit Mini PIR 4871
Buy Here β†’
πŸ”Œ Best Plug-and-Play: Seeed Grove PIR
Buy Here β†’
⏱️ Best Long Hold Time: Seeed Grove Adjustable PIR
Buy Here β†’
πŸ“‘ Best Non-PIR Alternative: DFRobot SEN0192 Radar
Buy Here β†’
πŸ’° Best Budget Classic: DIYables HC-SR501
Buy Here β†’
πŸ”¦ Best Tiny Budget Trigger: Oiyagai HC-SR505
Buy Here β†’

For most ESP32 motion projects, the Adafruit PIR 189 is the sensor to buy: 3.3V output, a wide 120Β° view and great documentation. Choose the SparkFun Qwiic PIR for clean I2C wiring, the STHS34PF80 when you need to detect people sitting still, and the Adafruit Mini PIR for tiny boards. If motion is only part of your project, see our guides to mmWave presence sensors for ESPHome, distance sensors for ESP32, the wider best sensors for ESP32 roundup and our ESP32 prototyping supplies for wiring it all up.

πŸ’¬ Building a motion-triggered ESP32 project? Tell us what you want to detect and where the sensor will be mounted in the comments below, and we’ll suggest the right one.

All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying.

Leave a Comment