Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Home Automation & Smart Devices

PIR Sensor Automatic Light: Save Electricity with Motion Detection

PIR Sensor Automatic Light: Save Electricity with Motion Detection

April 1, 2026 /Posted by / 0

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.

Table of Contents

  • How PIR Sensors Work
  • Best Locations for PIR Lights in Indian Homes
  • Choosing the Right PIR Sensor
  • Direct 230V AC PIR Wiring (No Arduino)
  • Arduino-Based PIR Light Controller
  • Adjusting Sensitivity and Timing
  • Frequently Asked Questions
  • Conclusion

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.

🛒 Recommended: HC-SR501 PIR Motion Sensor Module — The most popular PIR sensor for Arduino and ESP32 projects. Adjustable sensitivity and delay time via onboard trimpots. Wide detection angle of 120 degrees.

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.

🛒 Recommended: AC 220V PIR Motion Sensor Light Switch — Direct replacement for a wall switch. No Arduino needed — wire it in place of your existing switch for instant automatic lighting.

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.

🛒 Recommended: LM393 LDR Sensor Module — Light level detection module with both analog and digital output. Use alongside PIR to enable lights only when it is dark enough.

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.
🛒 Recommended: HC-SR501 PIR with Jumper for Trigger Mode — Version with accessible jumper on the back for easy switching between repeatable and non-repeatable trigger modes.

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.

Tags: Energy Saving, LED, Motion, PIR, smart home
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
Smart Farming with IoT: Comple...
blog smart farming with iot complete sensor network for indian agriculture 612599
blog drip irrigation controller arduino automated watering for indian farms 612605
Drip Irrigation Controller: Ar...

Related posts

Svg%3E
Read more

MQTT for Home Automation: ESP32 + Mosquitto + Home Assistant

April 1, 2026 0
MQTT is the backbone protocol of professional home automation systems. If you are building a smart home with multiple ESP32... Continue reading
Svg%3E
Read more

Curtain and Blind Automation: Stepper Motor Controller

April 1, 2026 0
Curtain automation is one of the most satisfying smart home upgrades you can build. Imagine your curtains opening automatically at... Continue reading
Svg%3E
Read more

Smart Doorbell with Camera: ESP32-CAM Video Intercom

April 1, 2026 0
A smart doorbell with a camera lets you see who is at your door from your phone, even when you... Continue reading
Svg%3E
Read more

Blynk IoT Platform: Control Arduino and ESP32 from Mobile

April 1, 2026 0
The Blynk IoT platform is the fastest way to control your Arduino and ESP32 projects from your mobile phone. Instead... Continue reading
Svg%3E
Read more

4-Channel Relay Module Guide: Wiring, Safety, and Projects

April 1, 2026 0
The 4-channel relay module is the single most important component in home automation projects. It is the bridge that allows... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now