Skip to main content
RK
Rojony Khatun
Last updated: Jun 11, 2026

PIR Motion Sensor at Home Circuit

Build a DIY PIR motion sensor circuit for home security. Step-by-step guide with components, working principle, schematic, and installation tips.

Advertisement
Advertisement

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Advertisement

PIR Motion Sensor at Home Circuit

Build a DIY PIR motion sensor circuit for home security. Step-by-step guide with components, working principle, schematic, and installation tips.

Advertisement

What Is a PIR Motion Sensor Circuit?

A PIR motion sensor circuit is an electronic circuit on which the movement of a human being or an animal is detected by a Passive Infrared sensor and used to control an output device. PIR sensors have pyroelectric materials that produce a voltage after being hit by infrared radiation from a moving object. This signal is processed in the circuit and causes a load, including home automation devices, lights, and alarms.

pir sensor connection for beginners

The PIR motion sensor is a home circuit device that is crucial to DIY home automation and security systems. PIR (Passive Infrared) is a sensor that can sense the infrared radiation released by a human or animal and activate electronic circuits in alarms, lights, or some other device.

The PIR motion sensor circuit used in home functions in such a way that it detects the heat of moving bodies in its area. On the detection of motion, the PIR module sends a high signal to the associated trigger circuit, which can trigger a relay, buzzer, or light. This is a basic, though powerful, system that improves the security of homes, conserves energy through the use of automated lights, and can be expanded as part of a larger smart home system. We are going to provide in this guide the parts, the working principle, circuit diagram, step-by-step construction, and solutions to problems that you may encounter during the process of constructing a PIR motion sensor circuit that can be implemented in your home.

Sponsored

Advantages of Using PIR Sensors at Home

  • Energy Saving: Automatically turns off lights when no motion is detected.
  • Enhanced Security: Detects intruders and triggers alarms.
  • Easy Installation: Simple circuit with low component count.
  • Microcontroller Compatible: Works with Arduino, Raspberry Pi, ESP8266, ESP32, and more.
  • Cost-Effective: Budget-friendly automation solution.

Components Required for DIY Circuit

Component Quantity Purpose
PIR Sensor Module (HC-SR501)1Detects infrared motion
NPN Transistor (BC547)1Amplifies PIR output
Relay (5V/12V)1Controls AC/DC load
Diode (1N4007)1Back-EMF protection
Resistors (1kฮฉโ€“10kฮฉ)2โ€“3Biasing & limiting
Capacitor (10ยตFโ€“100ยตF)1Stabilization
LED1Motion indication
Power Supply (5Vโ€“12V)1Powers sensor & relay
Breadboard / PCB1Assembly

Working Principle of PIR Motion Sensor

Detection Stage: PIR detects infrared radiation changes from moving bodies.

Amplification Stage: PIR output drives an NPN transistor to control relay.

Output Stage: Relay switches lights, alarms, or appliances; LED shows detection.

Delay & Sensitivity: Adjustable potentiometers control detection distance & hold time.

Circuit Diagram Explanation

  • PIR Output โ†’ Base of transistor via 1kฮฉ resistor
  • Transistor Collector โ†’ Relay Coil
  • Diode (1N4007) โ†’ Across relay coil for protection
  • LED โ†’ Parallel with relay using a limiting resistor
  • Power Supply โ†’ 5Vโ€“12V DC

Step-by-Step Construction Guide

  1. Connect PIR Sensor: VCC, GND, and output to transistor base.
  2. Amplifier Stage: Connect transistor with relay coil; add diode across coil.
  3. Connect Load: Use relay to switch AC/DC loads; add LED for indication.
  4. Power Supply: Use 5โ€“12V depending on relay & PIR rating.
  5. Testing & Adjustment: Move in front of sensor; tune delay and sensitivity.

Applications of PIR Sensor Circuits

  • Automatic home lighting
  • Security alarm systems
  • Smart energy-saving systems
  • Home automation controls
  • Garage, stairway, corridor lighting

Troubleshooting Tips

  • Relay not triggering โ†’ Check transistor biasing & PIR output voltage.
  • False triggers โ†’ Reduce sensitivity or reposition sensor.
  • LED not lighting โ†’ Check polarity & limiting resistor.
  • Load not switching โ†’ Use relay rated for load voltage/current.
  • Sensor not detecting โ†’ Ensure correct power supply and positioning.
Advertisement

Frequently Asked Questions - PIR Motion Sensor at Home Circuit:

A circuit using a PIR sensor to detect movement and activate a load like lights or alarms.
HC-SR501 is commonly used for home DIY projects.
Typically 5Vโ€“12V DC depending on the module.
Yes, using a relay to isolate the AC load from the sensor.
Use the potentiometer on the PIR module to change detection range.
Most modules have a delay adjustment from a few seconds to several minutes.
Yes, connect LED with current-limiting resistor parallel to relay.
Yes, low-voltage DC circuit makes it beginner-friendly.
Usually 5โ€“12 meters, adjustable by module sensitivity.
Yes, PIR output can be interfaced with Arduino, Raspberry Pi, etc.
Advertisement
Advertisement
Advertisement