Hw-416-b Pir Sensor Datasheet ((exclusive)) -
| Component | Label | Function | |-----------|-------|----------| | Left Potentiometer | | Adjusts output delay time (Tx) after motion stops. CW = longer delay. | | Right Potentiometer | SENS | Adjusts detection sensitivity/distance. CW = more sensitive / longer range. | | Jumper (JP1) | Trigger Mode | H = Repeatable trigger (retriggering resets delay timer). L = Single trigger (output turns off after delay, regardless of continued motion). |
Digital output. It sends a High (3.3V) signal when motion is detected and remains Low (0V) when idle. GND: Ground connection. hw-416-b pir sensor datasheet
The sensor uses a simple 3-pin interface usually found under the white Fresnel lens: Connect to 5V power. CW = more sensitive / longer range
int motionPin = 2; int ledPin = 13;
void loop() int motion = digitalRead(motionPin); if (motion == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW); | Digital output
