Hw-416-b Pir Sensor Datasheet Official
Enabling projects or mechanical props to "wake up" or interact when someone approaches. Troubleshooting False Triggers
Most HW-416-B variants include a three-pin jumper header labeled and L to select the trigger mode:
void loop() int motion = digitalRead(motionPin); if (motion == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW); hw-416-b pir sensor datasheet
He adjusted this so it wouldn't trigger every time a cold draft drifted past his heater.
What is the you are building (e.g., security system, automated light)? Enabling projects or mechanical props to "wake up"
This knob adjusts the detection distance. Turning it clockwise increases the sensitivity (up to ~7 meters), while counter-clockwise decreases it. 4.2 Time Delay Adjustment (Potentiometer)
After the output goes LOW, the sensor locks itself for roughly 2.5 seconds to prevent self-triggering from minor ambient changes. It will ignore all movement during this time. This knob adjusts the detection distance
What are you using? (ESP32, Raspberry Pi, etc.)
The Ultimate HW-416-B PIR Motion Sensor Guide: Datasheet, Pinout, and Arduino Integration
The HW-416-B PIR sensor can be used in various applications, including: