Hw-416-b Pir Sensor Datasheet May 2026
| HW-416-B | Arduino Uno/Nano | | :--- | :--- | | VCC | 5V | | OUT | Digital Pin 2 (or any) | | GND | GND |
Simple Arduino Code Sketch:
int pirPin = 2; int ledPin = 13;void setup() Serial.begin(9600); pinMode(pirPin, INPUT); pinMode(ledPin, OUTPUT); hw-416-b pir sensor datasheet
void loop() int motionState = digitalRead(pirPin);
if (motionState == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion Detected!"); delay(100); else digitalWrite(ledPin, LOW);| HW-416-B | Arduino Uno/Nano | | :---
To use the HW-416-B with an Arduino Uno or similar 5V logic board: To use the HW-416-B with an Arduino Uno
| Parameter | Min | Typ | Max | Unit | |----------------------|------|------|-------|-------| | Supply voltage | 4.5 | 5 | 20 | V | | Output high voltage | 2.8 | 3.3 | 3.4 | V | | Output low voltage | 0 | 0.4 | 0.6 | V | | Output current (max) | - | - | 100 | mA | | Standby current | - | 0.05 | 0.1 | mA | | Operating temp | -20 | 25 | +80 | °C | | Delay time range | 0.5 | - | 200 | sec | | Detection range | 3 | 5 | 7 | m |