BurntBase Logo

Hw-416-b Pir Sensor Datasheet Jun 2026

// Define pins const int PIR_PIN = 2; // HW-416-B OUT connected to digital pin 2 const int LED_PIN = 13; // Onboard LED void setup() pinMode(PIR_PIN, INPUT); // Set PIR pin as input pinMode(LED_PIN, OUTPUT); // Set LED pin as output Serial.begin(9600); // Initialize Serial Monitor Serial.println("PIR Sensor Warm-up: Waiting for stabilization..."); delay(30000); // Allow 30 seconds for the sensor to stabilize Serial.println("Sensor Active."); void loop() int sensorState = digitalRead(PIR_PIN); if (sensorState == HIGH) digitalWrite(LED_PIN, HIGH); // Turn on LED Serial.println("--- Motion Detected! ---"); else digitalWrite(LED_PIN, LOW); // Turn off LED delay(100); // Small delay to prevent serial flooding Use code with caution. 5. Troubleshooting False Triggers

Avoid placing the sensor near heaters, air conditioners, or direct sunlight, as rapid temperature changes can cause false alarms.

The table below details the electrical and environmental operating parameters of the HW-416-B module. Specification DC 4.5V to 20V 5V standard recommended Static Current Low power standby mode Level Output High 3.3V / Low 0V Digital signal output Delay Time 0.5 seconds to 200 seconds Adjustable via potentiometer Block Time 2.5 seconds Default factory setting Detection Distance 3 meters to 7 meters Adjustable via potentiometer Sensing Angle < 100 degrees cone angle Enhanced by Fresnel lens Operating Temperature -15°C to +70°C Avoid direct sunlight/heat sources PCB Dimensions Approx. 32mm x 24mm Compact form factor 3. Pinout Configuration hw-416-b pir sensor datasheet

3 to 7 meters (Adjustable via onboard potentiometer)

Turning on LED strips or lamps when someone enters a room and turning them off after they leave. // Define pins const int PIR_PIN = 2;

When a warm body (like a person) moves across the sensor's field of view, the infrared level changes rapidly. The crystal generates an electrical charge in response to this change, triggering the alarm.

When motion is detected, the output goes HIGH. After the delay time expires, the output automatically drops back to LOW, even if the target is still moving within the detection zone. Troubleshooting False Triggers Avoid placing the sensor near

Even with a datasheet, users face issues. Here are solutions specific to the HW-416-B:

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.