PIR sensor automatic lights are the simplest and most effective way to save electricity in Indian homes. By automatically turning lights on when someone enters a room and off when they leave, a PIR (Passive Infrared) motion sensor can reduce lighting electricity consumption by 30–60%. Staircases, bathrooms, corridors, balconies, and parking areas are prime candidates — places where lights are often left on for hours unnecessarily.
This guide covers everything from choosing the right PIR sensor to wiring it for Indian 230V AC lighting circuits.
How PIR Sensors Work
A PIR (Passive Infrared) sensor detects changes in infrared radiation emitted by warm objects — primarily human bodies. When a person walks past the sensor, the change in infrared energy triggers the sensor output.
Key characteristics:
- Detection range: 3–7 metres (adjustable on most modules)
- Detection angle: Approximately 120 degrees
- Response time: Less than 1 second
- Output: HIGH (3.3V) when motion detected, LOW when no motion
PIR sensors are “passive” because they do not emit any signal — they only detect existing infrared radiation. This makes them extremely power-efficient (milliwatts of power consumption).
Best Locations for PIR Lights in Indian Homes
| Location | Savings Potential | Notes |
|---|---|---|
| Staircase | High (60–80%) | Lights often left on all night in apartments |
| Bathroom | Medium (30–50%) | Prevents kids leaving lights on |
| Corridor/Passage | High (50–70%) | Transit areas used for seconds, lights left on for hours |
| Parking/Garage | Very High (70–90%) | Used only when entering/exiting |
| Balcony/Terrace | High (60–80%) | Also serves as security alerting |
| Pooja Room | Medium (30–40%) | Quick visits, lights forgotten |
Choosing the Right PIR Sensor
For Arduino/ESP32 Projects: HC-SR501
The HC-SR501 is the standard PIR module for microcontroller projects. It outputs a 3.3V digital signal when motion is detected.
For Direct AC Wiring: 220V PIR Module
Standalone PIR modules that directly switch 230V AC without needing any microcontroller. Simply wire in line with your light fixture.
Direct 230V AC PIR Wiring (No Arduino)
The simplest way to add motion-activated lighting is using a 230V AC PIR module. No coding, no microcontroller — just electrical wiring:
Mains LIVE (Phase) → PIR Module Input (L)
PIR Module Output → Light Fixture LIVE
Mains NEUTRAL → PIR Module (N) and Light Fixture NEUTRAL
That is it. When the PIR detects motion, it connects the internal relay, powering the light. After the set delay (usually adjustable from 10 seconds to 7 minutes), it switches off automatically.
Installation tip: Mount the PIR sensor at a height of 2–2.5 metres, pointing toward the area where people walk. Avoid pointing it directly at windows (sunlight can cause false triggers) or near air conditioner vents (moving warm air triggers the sensor).
Arduino-Based PIR Light Controller
For more control — like adjusting timing from your phone, adding light level detection (to skip during daytime), or combining with other sensors — use an Arduino or ESP32:
#define PIR_PIN 2
#define RELAY_PIN 7
#define LDR_PIN A0
#define LIGHT_OFF_DELAY 60000 // 60 seconds after last motion
#define DARK_THRESHOLD 300 // LDR reading below this = dark enough
unsigned long lastMotionTime = 0;
bool lightOn = false;
void setup() {
Serial.begin(9600);
pinMode(PIR_PIN, INPUT);
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, HIGH); // Light OFF
// Wait for PIR sensor to stabilise (30-60 seconds)
Serial.println("Warming up PIR sensor...");
delay(30000);
Serial.println("Ready!");
}
void loop() {
int motion = digitalRead(PIR_PIN);
int lightLevel = analogRead(LDR_PIN);
// Only activate in dark conditions
bool isDark = lightLevel LIGHT_OFF_DELAY)) {
digitalWrite(RELAY_PIN, HIGH); // Light OFF
lightOn = false;
Serial.println("No motion - Light OFF");
}
delay(100);
}
This code adds an LDR (Light Dependent Resistor) to prevent the light from turning on during daytime — the PIR sensor is active 24/7, but the relay only operates when ambient light is below the threshold.
Adjusting Sensitivity and Timing
The HC-SR501 has two small potentiometers (trimpots) on the board:
Sensitivity Adjustment (Left Trimpot)
- Clockwise: Increases detection range (up to 7 metres)
- Counter-clockwise: Decreases range (down to 3 metres)
- For corridors: Set to medium-high sensitivity
- For small rooms: Set to medium to avoid detecting movement through walls
Time Delay Adjustment (Right Trimpot)
- Clockwise: Increases delay (up to 5 minutes)
- Counter-clockwise: Decreases delay (minimum 3 seconds)
- For staircases: Set to 1–2 minutes (enough time to climb)
- For bathrooms: Set to 3–5 minutes
- For parking: Set to 2–3 minutes
Trigger Mode Jumper
The HC-SR501 has a jumper that selects between:
- H (Repeatable trigger): Timer resets with each new motion detection. The light stays on as long as there is continued activity. Use this mode for most applications.
- L (Non-repeatable trigger): Output goes HIGH once, then LOW after the delay, regardless of continued motion. The sensor has a 3-second “blind” period before it can trigger again.
Frequently Asked Questions
Can PIR sensors detect pets?
Yes. PIR sensors detect any warm-blooded animal. If you have pets and want to avoid false triggers, mount the sensor higher (above pet height) and angle it downward, or reduce sensitivity. Some commercial PIR sensors have “pet immune” mode, but the HC-SR501 does not.
Why does my PIR trigger randomly?
Common causes of false triggers include: direct sunlight falling on the sensor, air conditioner vents blowing warm air across the detection zone, electrical interference from nearby appliances, and insects crawling on the sensor dome. Relocate the sensor or adjust sensitivity to fix.
Can I use PIR for security alarms?
Absolutely. PIR sensors are the same technology used in commercial burglar alarms. Connect the PIR output to a buzzer or siren relay for a basic intrusion alarm. Add GSM notification via ESP32 for phone alerts.
Does the PIR sensor consume electricity continuously?
The HC-SR501 draws less than 65µA in standby — effectively zero electricity cost. Even the 230V AC PIR modules consume less than 0.5W in standby.
Can I use multiple PIR sensors for a long corridor?
Yes. Wire multiple PIR sensor outputs in parallel (OR configuration) — if any sensor detects motion, the light turns on. This is essential for L-shaped corridors or long staircases where one sensor cannot cover the entire area.
Conclusion
PIR sensor automatic lights are the lowest-effort, highest-impact smart home upgrade for Indian homes. A single 230V PIR module installed on a staircase light can save ₹50–₹100 per month in electricity, paying for itself within the first month. No Arduino, no coding, no app — just simple wiring and immediate results.
For more advanced setups with LDR integration, adjustable timing, and WiFi control, use an HC-SR501 with an Arduino or ESP32. Get all the components at Zbotic.in — browse our PIR sensors, relay modules, and LDR modules today.
Add comment