Hw-416-b Pir Sensor Datasheet !link!

Passive Infrared (PIR) sensors are indispensable components in modern automation, security systems, and energy-saving lighting. The (often sold under similar codes such as HC-SR501, or as a generic "Mini PIR Motion Sensor Module") is one of the most widely used modules for detecting human or animal motion due to its high reliability, low cost, and ease of use.

void setup() pinMode(ledPin, OUTPUT); pinMode(inputPin, INPUT); Serial.begin(9600); hw-416-b pir sensor datasheet

The HW‑416‑B offers greater flexibility thanks to its adjustable range and delay, while the HC‑SR505 is more compact and consumes far less power, making it better for battery‑operated projects. making it better for battery‑operated projects.