PIR Sensor: 6 Genius Tips for Reliable Motion Detection

Share:
Electronic Sensors
PIR Sensor: 6 Genius Tips for Reliable Motion Detection

A tiny pyroelectric element and a plastic lens detect the body heat of a moving person without emitting anything.

Passive Infrared Pyroelectric Element Fresnel Lens SR501 Module

A PIR sensor detects motion by sensing changes in infrared heat radiated by people and animals. It is passive, meaning it emits no energy of its own, which keeps power use extremely low.

Hello everyone, today we are going to learn how a PIR sensor works, what the SR501 module settings do, and how to place a sensor so it catches real motion without false alarms.
PIR sensor

What Is a PIR Sensor?

A PIR sensor, or passive infrared sensor, is a motion detector that responds to changes in infrared radiation within its field of view. Unlike an active IR sensor, it has no emitter and only listens for heat.

Every warm object radiates infrared energy, and the human body radiates strongly around a wavelength of about 10 micrometres. A moving person creates a changing heat pattern that the sensor can see.

SR501 passive infrared motion sensor module with white Fresnel lens
Image credit: Last Minute Engineers

The SR501 module is the most popular hobby and training version. It combines a pyroelectric element, a Fresnel lens and a BISS0001 signal processing chip.

Because it detects change, a person standing perfectly still may not be detected. This is the key difference from presence sensors based on microwave radar.

How a PIR Sensor Detects Motion

Body HeatPerson emits infrared radiation
Fresnel LensFocuses heat from many zones
Dual ElementTwo slots see the zones one after another
Differential SignalPositive then negative pulse as heat passes
BISS0001 OutputSignal amplified and turned into a digital high

The pyroelectric element has two sensing slots wired in opposition. When the room is still, both see the same heat and the signals cancel.

When a person walks across, one slot sees them first and then the other. This produces a positive pulse followed by a negative pulse, which the chip recognizes as motion.

The Fresnel lens splits the view into many zones. Each crossing between zones creates another pulse, which increases sensitivity to movement across the field.

SR501 Settings and Specifications

ParameterTypical Value
Supply voltage4.5 to 12 V, usually 5 V
Output3.3 V digital high on motion
Detection rangeAbout 3 to 7 m, adjustable
Detection angleAbout 120 degrees
Time delayAbout 1 second to 3 minutes
Warm up time30 to 60 seconds

Two small potentiometers set sensitivity and time delay. A jumper selects single trigger mode, marked L, or repeat trigger mode, marked H.

In repeat mode, the output stays high as long as motion continues. The output can drive a microcontroller input directly or switch a relay through a transistor.

6 Genius Tips for Reliable Detection

1
Mount Across the Path
Place the sensor so people walk across its zones, not straight toward it.
2
Avoid Heat Sources
Keep it away from heaters, AC vents and direct sunlight.
3
Allow Warm Up
Ignore the output for about a minute after power on.
4
Set Sensitivity Carefully
Reduce range to avoid picking up corridors or pets.
5
Use a Stable Supply
Noisy power can cause random triggers.
6
Pick the Right Mode
Use repeat trigger for lighting and single trigger for counting.

Tip 1 is the most important. A PIR sensor is much more sensitive to sideways motion than to someone walking directly toward it.

Tip 2 matters because moving warm air looks like a person. Similar false trigger issues appear in fire alarm detectors placed near vents.

PIR Sensor Coverage Width Formula

Coverage width W = 2 × d × tan(θ ÷ 2)

d = distance from the sensor
θ = detection angle

Worked example:
d = 5 m, θ = 120 degrees
tan(60 degrees) = 1.732
W = 2 × 5 × 1.732
Coverage width = 17.3 m at 5 m distance

The calculated width is the edge of the cone, not guaranteed detection everywhere inside it. Sensitivity falls near the edges and at the far end of the range.

Use the result to check whether one sensor can cover a room or whether two are needed. Overlapping two sensors removes blind spots in large areas.

PIR Sensor vs Microwave vs Ultrasonic Motion Sensors

FeaturePIRMicrowaveUltrasonic
PrinciplePassive heat changeDoppler radarSound echo
Power useVery lowHigherMedium
Sees through thin wallsNoYesNo
Detects still peopleNoSometimesSometimes
False triggersHeat sourcesMovement outside areaAir currents

Dual technology detectors combine PIR and microwave, and trigger only when both agree. This greatly reduces false alarms in security systems.

For object detection on machines, other photoelectric sensors or proximity sensors are usually a better fit than PIR.

Where a PIR Sensor Is Used

Automatic Lighting
Corridors, stairs and washrooms switch on only when needed.
Security Alarms
Intruder detection in homes and warehouses.
HVAC Control
Occupancy based air conditioning and ventilation.
Automatic Doors
Opening doors when people approach.
Energy Saving
Turning off displays and equipment in empty rooms.
IoT Projects
Arduino and ESP32 motion triggers.

Occupancy sensing is a major energy saver in buildings, often linked with the HVAC system. Lights and cooling run only when rooms are in use.

For sensor selection in general, see our sensor selection criteria guide, which compares range, response and environment.

PIR Coverage Calculator

Detection Width at a Given Distance
Coverage width
17.32 m coverage width

Real coverage depends on the lens pattern and mounting height. Check the manufacturer coverage diagram for final placement.

Advantages
  • Very low power consumption.
  • Low cost and simple to use.
  • Emits nothing, so it is safe and silent.
  • Good at detecting people crossing the view.
Limitations
  • Cannot detect a still person.
  • Affected by heat sources and sunlight.
  • Cannot see through glass or walls.
  • Needs warm up after power on.

SR501 Datasheet PDF

PDF
SR501 PIR Motion Detector Datasheet
Module specifications, jumper settings and adjustment guide

SR501 Working and Wiring Video

PIR Sensor Questions and Answers

What does a PIR sensor detect?
It detects changes in infrared heat caused by moving people or animals.
Why is it called passive?
Because it only receives infrared energy and emits nothing.
What is the Fresnel lens for?
It focuses heat from many zones onto the sensor element.
Can it detect a still person?
Usually not, because it needs a change in heat.
What is the output voltage of SR501?
About 3.3 V when motion is detected.
What does the L and H jumper do?
L gives single trigger and H gives repeat trigger mode.
Why does it trigger falsely?
Heat sources, sunlight, air vents or a noisy supply are common causes.

Related Articles

External References

What We Learn Today

  • This sensor detects changes in infrared heat using a dual pyroelectric element.
  • The Fresnel lens creates zones so sideways motion is detected best.
  • Careful placement away from heat sources prevents most false triggers.
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!

Leave a Reply

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