HW-416B PIR sensor is a high-performance passive infrared motion detector widely recognized as a reliable alternative to the industry-standard HC-SR501
HW416B OUT → 1kΩ resistor → Base of BC547
Emitter of BC547 → GND
Collector → Relay coil negative terminal
Relay coil positive → VCC (with flyback diode)
If the "HW416B" is the compact, dome-topped sensor often sold in multi-packs, it is significantly better for finished projects but worse for breadboard prototyping compared to the standard HC-SR501. It excels in aesthetics and size but lacks the manual adjustment flexibility of larger sensors. hw416b pir sensor datasheet better