Hw-416-b Pir Sensor Datasheet ((exclusive))
GPIO.setmode(GPIO.BCM) PIR_PIN = 2 GPIO.setup(PIR_PIN, GPIO.IN)
While it may look like a simple circuit board with a white dome, the HW-416-B is actually a sophisticated thermal radar. Let’s dive into the datasheet secrets that make this tiny sensor a powerhouse for home automation and security.
Last updated: October 2025. Specifications are based on Revision 2.3 of the HW-416-B board. Always verify with your specific module version. hw-416-b pir sensor datasheet
Security systems, automatic lighting, entry alerts, and home automation.
Turning this clockwise increases the detection distance (up to ~7 meters). Turning it counter-clockwise decreases the range, which is helpful for small rooms to prevent false triggers. Specifications are based on Revision 2
Unlike some micro-sensors, the HW-416-B typically includes two potentiometers (trimpots) on the back of the PCB to fine-tune its behavior:
void setup() pinMode(2, INPUT); Serial.begin(9600); void loop() if (digitalRead(2) == HIGH) Serial.println("Motion Detected!"); delay(100); Use code with caution. Copied to clipboard Turning this clockwise increases the detection distance (up
The HW-416-B offers an excellent balance of affordability, ease of use, and reliable motion detection performance. Its wide voltage tolerance, low power consumption (under 50 µA quiescent), adjustable sensitivity/delay, and dual trigger modes make it a go‑to choice for both hobbyist and professional motion detection applications.
void loop() motionState = digitalRead(motionPin); if (motionState == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW);
Some HW-416-B modules use an onboard 3.3V regulator , so the output pin is 3.3V – safe for 5V logic inputs (e.g., Arduino, STM32).