Hw-416-b Pir Sensor Datasheet 2021 Jun 2026
void setup() Serial.begin(9600); pinMode(motionPin, INPUT); pinMode(ledPin, OUTPUT); Serial.println("HW-416-B warming up..."); delay(60000); // Critical: Allow 60s stabilization
Whether you are building a security system, an automatic door, or a smart home sensor, understanding the HW-416-B’s configuration options ensures optimal performance. Bookmark this page as your go-to reference, and always remember to allow the 30-second warm-up period before testing.
The HW-416-B features a straightforward 3-pin interface alongside control components on the back of the PCB.
Choose the HW-416-B for low-power IoT sensors or motion-activated sound effects. Choose the HC-SR501 for hallway lights or alarm systems requiring a long output pulse. hw-416-b pir sensor datasheet
GPIO.setmode(GPIO.BCM) PIR_PIN = 2 GPIO.setup(PIR_PIN, GPIO.IN)
Output remains high as long as motion is detected.
When designing your next motion-sensing project, remember: void setup() Serial
into multiple zones. When a human walks, they pass between these zones, causing a fluctuating IR signal. The Pyroelectric Sensor
Do not connect the output directly to a high-current load (e.g., a relay or LED strip). Use a transistor or an optocoupler for isolation.
The is a highly efficient, low-cost electronic module designed to detect human or animal movement. It is widely used in smart home automation, security systems, and energy-saving lighting projects. By capturing changes in infrared radiation emitted by living bodies, this compact sensor provides an easy-to-use digital output for microcontrollers. Choose the HW-416-B for low-power IoT sensors or
Activating a buzzer or sending a notification when movement is detected in a restricted area.
The following code configures the Arduino to monitor the HW-416-B and trigger the built-in LED (Pin 13) when motion occurs.