Since the "HW-416B" is often confused with the HC-SR501 (they share the same BISS0001 chip and lens), this post focuses on clarifying the actual specs and how to use it effectively.
| Parameter | Typical Value | |-----------|----------------| | Operating Voltage | 5V – 20V (but 5V works fine) | | Standby Current | < 50 µA | | Output High | 3.3V (not 5V – be careful) | | Output Low | 0V | | Delay Time | 5 – 300 seconds (adjustable) | | Sensitivity | 3 – 7 meters | | Trigger Modes | Single (non-repeatable) or Repeatable | hw416b pir sensor datasheet better
Buy the HW416B / Mini PIR if:
Pro tip: Set it to H for debugging, otherwise you will think the sensor is broken because it ignores you for 30 seconds after the first wave. Since the "HW-416B" is often confused with the
if (motionState == HIGH && lastMotionState == LOW) Serial.println("Motion DETECTED! (Timer started)"); digitalWrite(ledPin, HIGH); // Add your action here (turn on light, send alert, etc.) void setup() Serial
PIR-sensor-breakout.void setup() Serial.begin(9600); pinMode(PIRpin, INPUT); Serial.println("HW-416B Warming up (30 sec)..."); delay(30000); // CRITICAL: Let the sensor stabilize
Here’s what you’ll get in that better datasheet: