Hw416b Pir Sensor Datasheet Better Direct

The HW416B cannot directly power a relay, buzzer, or LED strip (it will drop voltage drastically).

void loop() if (motionDetected) digitalWrite(LED_PIN, HIGH); Serial.println("Motion detected!"); motionDetected = false; lastMotionTime = millis(); hw416b pir sensor datasheet better

Unlike some "mini" PIR sensors that have fixed settings, the HW-416B usually features two potentiometers (or specific solder pads) that allow for: The HW416B cannot directly power a relay, buzzer,