Hw-416-b Pir Sensor Datasheet «1080p»
The output stays high as long as motion is detected. This is the default for most lighting projects. 🔌 Pinout & Connection
Digital output pin. Outputs 3.3V (HIGH) when motion is detected and 0V (LOW) during standby. GND: Ground connection. Connect to the system ground.
The Ultimate Guide to the HW-416-B PIR Sensor: Datasheet, Pinout, and Arduino Integration
| Feature | HW‑416‑B (HC‑SR501) | HC‑SR505 (Mini PIR) | | :--- | :--- | :--- | | | ~3–7 m adjustable | ~3 m fixed | | Delay adjustment | Yes (3 s – 5 min) | No (fixed ~3 s) | | Size | ~32 × 24 mm | ~28 × 20 mm | | Current consumption | < 65 mA | ~50 µA (much lower) | hw-416-b pir sensor datasheet
Clockwise rotation increases the detection distance (up to ~7 meters); counter-clockwise rotation decreases the range.
This sketch turns on an LED when motion is detected and prints messages to the Serial Monitor.
Built-in potentiometers allow fine-tuning of delay time and sensing distance. The output stays high as long as motion is detected
delay(1000);
Avoid placing the sensor near heaters, air conditioners, or direct sunlight, as rapid temperature changes can cause false alarms.
Turning this clockwise increases the duration that the output pin remains HIGH after motion is detected. Turning it counter-clockwise reduces the delay time down to its minimum (~0.5 seconds). Trigger Mode Selection Jumper Outputs 3
The Fresnel lens (the white plastic dome) must remain unobstructed. If mounting in a box, ensure the dome protrudes through a cutout.
The HW-416-B PIR sensor module typically has three pins: