Sensor Datasheet ((free)) | Hw-416-b Pir
Turning clockwise increases the detection distance.
On a rainy afternoon, she opened a new datasheet revision and noticed a minor update: a clarified recommended operating range and a tweak to the typical output waveform diagram. Small changes, but they mattered. She marked them in red and taped the page beside her original, a patchwork of knowledge that had guided a dozen small inventions. hw-416-b pir sensor datasheet
void loop() int motion = digitalRead(motionPin); if (motion == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW); Turning clockwise increases the detection distance
| Pin | Name | Description | |-----|------|-------------| | 1 | VCC | Power input (4.5V – 20V DC) | | 2 | OUT | Digital output (HIGH = motion detected, LOW = idle) | | 3 | GND | Ground (0V) | She marked them in red and taped the
The output goes low once the time delay expires, even if motion continues.


