The HW416B is a passive infrared (PIR) motion sensor module that detects movement by sensing changes in infrared radiation—essentially, the heat signatures emitted by living bodies like humans and animals. The module combines a pyroelectric IR sensor, a Fresnel lens, and on‑board signal processing circuitry into a compact, easy‑to‑use board.
The HW-416B features two orange trim pots (potentiometers) on the back. Knowing how to turn them is the difference between a working project and a false-trigger nightmare. PIR (motion) sensor - Adafruit
#define PIR_PIN 2 // Output pin from HW416B #define LED_PIN 13 // On‑board LED for visual feedback
This article serves as your : a comprehensive guide covering every technical parameter, common pitfalls, circuit improvements, and practical tweaks to make the HW416B outperform its generic copy-paste documentation.
Disclaimer: Always verify pinouts with a multimeter. Counterfeit boards may vary.
Generic search yields questionable PDFs from random electronics forums. For a verified datasheet:
Have you found a different revision of the HW416B? Share your measured quiescent current or detection angle in the comments below. Together, we’ll build the world’s most accurate, community-driven HW416B reference.

