

A motion sensor is a device designed to detect physical movement within a specified area. It is commonly used in security systems, home automation, lighting control, and other applications where detecting motion is essential. Motion sensors can operate using various technologies, such as infrared (PIR), ultrasonic, microwave, or a combination of these.








Below are the general technical specifications for a typical Passive Infrared (PIR) motion sensor, one of the most commonly used types of motion sensors:
| Parameter | Value |
|---|---|
| Operating Voltage | 4.5V to 20V DC |
| Operating Current | 50 µA to 60 µA (standby) |
| Detection Range | 3m to 7m (adjustable) |
| Detection Angle | 110° to 120° |
| Output Signal | High (3.3V or 5V) / Low (0V) |
| Warm-up Time | 10 to 60 seconds |
| Operating Temperature | -20°C to 50°C |
The PIR motion sensor typically has three pins:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (4.5V to 20V DC) |
| 2 | OUT | Output pin (High when motion is detected, Low otherwise) |
| 3 | GND | Ground connection |
Below is an example of how to connect and use a PIR motion sensor with an Arduino UNO:
// PIR Motion Sensor Example with Arduino UNO
// This code turns on the built-in LED when motion is detected.
#define PIR_PIN 2 // Define the pin connected to the PIR sensor's OUT pin
#define LED_PIN 13 // Define the built-in LED pin
void setup() {
pinMode(PIR_PIN, INPUT); // Set PIR sensor pin as input
pinMode(LED_PIN, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int motionState = digitalRead(PIR_PIN); // Read the PIR sensor output
if (motionState == HIGH) { // If motion is detected
digitalWrite(LED_PIN, HIGH); // Turn on the LED
Serial.println("Motion detected!"); // Print message to serial monitor
} else {
digitalWrite(LED_PIN, LOW); // Turn off the LED
Serial.println("No motion."); // Print message to serial monitor
}
delay(100); // Small delay to stabilize readings
}
False Triggers:
No Detection:
Output Stays HIGH:
Output Stays LOW:
Q: Can the PIR sensor detect motion through glass?
A: No, PIR sensors cannot detect motion through glass as infrared radiation does not pass through it effectively.
Q: How do I increase the detection range?
A: Adjust the sensitivity potentiometer on the sensor, but note that increasing sensitivity may also increase false triggers.
Q: Can I use the PIR sensor outdoors?
A: Yes, but ensure it is housed in a weatherproof enclosure to protect it from moisture and extreme temperatures.