Wiring Guide

How to Wire a Motion Sensor / PIR Light Switch: Indoor and Outdoor Guide

📅 ✍️ ElectraSim ⏱ 14 min read

A PIR (passive infrared) motion sensor switch detects the heat signature of a moving person and switches a light on automatically — then turns it off again after a set time delay. They are used for staircase lighting, hallways, utility rooms, garages, outdoor security lights, and anywhere that lights are regularly left on by accident.

Wiring a PIR switch is straightforward when you understand one key difference from a standard switch: most PIR units need a neutral wire at the switch position. Standard UK switch wiring (switch-and-earth) only brings live and switched-live to the switch — no neutral. This means a direct swap of a standard switch for a PIR switch only works if you have the right cable in place or choose the right type of PIR.

This guide covers both scenarios clearly, with step-by-step wiring for indoor and outdoor installations.

You can model occupancy-controlled lighting circuits in ElectraSim before starting any physical work.


How a PIR Switch Works

A PIR sensor detects infrared radiation — heat emitted by people and animals. When the sensor registers a change in the infrared pattern within its detection zone (someone entering the room or walking past), it triggers a relay or triac that switches the connected load on.

The switch stays on for a configurable time delay (typically adjustable from 10 seconds to 10 minutes). If further movement is detected before the time expires, the timer resets. When no movement is detected for the full delay period, the switch turns the load off.

Most PIR switches also include a lux (daylight) sensor. When ambient light is above the set threshold, the PIR ignores movement and does not switch on — preventing lights from coming on in a well-lit room or outdoors during daytime.

Adjustable settings on a typical PIR switch

SettingFunctionTypical range
Time delayHow long the light stays on after last detection10 sec – 10 min
Lux levelAmbient light threshold above which PIR is disabled10 – 2,000 lux
SensitivityDetection range and angle adjustmentLow / Medium / High

2-Wire vs 3-Wire PIR Switches

This is the most important decision before buying a PIR switch.

3-wire PIR (Live, Neutral, Switched-Live)

A 3-wire PIR switch has three connections:

The PIR electronics draw a small continuous current (typically 0.5–2 W) to stay powered, monitor the sensor, and track the time delay. This requires a permanent neutral at the switch position.

Standard UK switch wiring does not provide neutral at the switch. A standard switch drop runs switched-live (brown) and return (blue, sleeved brown) — no neutral. This means a 3-wire PIR cannot replace a standard switch without re-cabling or rerouting.

When 3-wire PIR works without re-cabling:

2-wire PIR (Live in, Switched-Live out only)

A 2-wire PIR switch has only two connections — it wires exactly like a standard on/off switch:

The PIR electronics power themselves by drawing a tiny trickle current through the light fitting even when the switch output is “off”. This works with most light fittings — but not with all LED loads, particularly low-wattage LEDs that may flicker or glow dimly due to the trickle current.

When to use a 2-wire PIR:

When to avoid a 2-wire PIR:


What You Need

For a 3-wire indoor PIR switch (new installation or existing neutral at switch)

For a 2-wire indoor PIR switch (direct replacement)

For an outdoor PIR floodlight


Step-by-Step: Wiring a 2-Wire PIR Switch (Direct Replacement)

This replaces a standard single-gang on/off light switch with a 2-wire PIR. The existing switch cable is used unchanged.

Step 1: Isolate and verify dead

Turn off the MCB or RCBO protecting the lighting circuit at the consumer unit. Use a voltage tester to confirm the switch terminals are dead. Do not rely on just switching off at the wall.

Step 2: Remove the existing switch

Unscrew the faceplate. Note how the existing switch is wired:

Disconnect all conductors and remove the old switch.

Step 3: Connect the 2-wire PIR

Connect to the PIR terminals per the manufacturer’s diagram. Typically:

The PIR is now in the same position as the old switch — interrupting the live path to the light.

Step 4: Fit and test

Fold the conductors carefully into the back box — PIR switches are bulkier than standard switches and need more depth. Screw the faceplate in place. Restore power and test:


Step-by-Step: Wiring a 3-Wire PIR Switch

This applies when neutral is available at the switch position — for example, in a new installation, when re-routing cable, or in a loop-in ceiling rose system where you are bringing a new cable from the rose to the switch.

Cable at the switch position

You need a cable with three conductors plus earth running to the switch. The most common approach for a new installation:

Run 1.5 mm² three-core-and-earth from the ceiling rose or junction box to the switch:

At the PIR switch

At the ceiling rose / junction box


Wiring a PIR in Parallel With a Manual Switch (Override)

Many installations benefit from a manual override — a standard switch wired in parallel with the PIR so the light can be switched on permanently regardless of motion detection. This is common in living rooms, kitchens, and home offices where the PIR time delay is inconvenient during prolonged static use.

How it works

When two switches are wired in parallel, the light is on if either switch is closed. The PIR closes its output when it detects motion. The manual switch, wired in parallel, can be closed to keep the light on regardless of the PIR state.

Wiring

At the switch position, both the PIR output and the manual switch connect between the same two points — live in and switched-live out:

Permanent Live ──┬── PIR input (L)
                 └── Manual switch (terminal 1)

PIR output (L out) ──┬── Switched-live to lamp
                      └── Manual switch (terminal 2)

Both the PIR switched output and the manual switch are connected in parallel. When the manual switch is closed, it bypasses the PIR entirely, keeping the light on. When the manual switch is open, the PIR controls the light normally.

This requires a double-gang back box and a twin-and-earth plus a link between the two gang positions, or a combination PIR/switch unit (sold as a single faceplate with both functions built in).


Wiring an Outdoor PIR Floodlight

Outdoor PIR floodlights are self-contained units — the PIR sensor, relay, and lamp are all built into one housing. They require only a permanent live, neutral, and earth supply — no switched-live, because the PIR inside the unit does the switching internally.

Supply cable

Run 1.5 mm² twin-and-earth from:

IP rating requirements

The floodlight and any external wiring accessories must meet the minimum IP rating for their location:

LocationMinimum IP rating
Under eaves (protected from rain)IP44
Exposed to direct rainIP65
Partially submerged or subject to water jetsIP67

All cable entry points must be sealed with the gland or fitting supplied with the floodlight to maintain the IP rating.

Connection at the floodlight

Most floodlights have a terminal block inside the housing:

Follow the manufacturer’s wiring diagram — some units have separate terminals for sensor power and load switching. Ensure the cable is secured with the strain relief / cable clamp inside the unit.

Earthing

The floodlight housing (if metal, Class I) must be connected to earth. Plastic-cased (Class II) floodlights do not require an earth connection to the housing, but the supply cable CPC should still terminate at the earth terminal if one is provided.

Related: IP Rating Explained: IP44, IP65, IP67 and What Every Number Means

Related: How to Wire an Outdoor Socket: Garden Power and External Sockets Explained


PIR Switch Load Ratings

PIR switches have a maximum and minimum load rating. Exceeding either causes problems.

IssueCauseResult
Load exceeds maximum ratingToo many lights or high-wattage fittingPIR relay or triac overheats, switch fails
Load below minimum rating (2-wire PIR)Single very low-wattage LEDLED glows or flickers when PIR is “off”

Typical load ratings

PIR typeMaximum loadMinimum load
Standard 2-wire (resistive/LED)300–500 W LED3–10 W
Standard 3-wire500–1,000 WNone (neutral powered)
Heavy-duty / commercial PIR1,000–2,000 WNone

For multiple light fittings on one PIR, add up the total wattage and confirm it is within the switch’s maximum rating.


Part P Notification

Replacing a like-for-like switch (standard switch → PIR switch, same position, same circuit) is not notifiable under Part P. It is a minor alteration to an existing circuit.

New wiring is required in:

ScenarioNotifiable?
New cable run from ceiling rose to switch position (re-routing for neutral)No — addition to existing lighting circuit, not a new circuit
New circuit from consumer unit for dedicated floodlightYes — new circuit
Any new wiring work in a bathroomYes
Any new wiring work in a kitchenCheck with local authority

Related: Part P Building Regulations Explained: What UK Homeowners Can and Can’t DIY


Simulating a PIR-Controlled Circuit in ElectraSim

In ElectraSim, you can model the switching logic of a PIR-controlled lighting circuit:

  1. Build a basic lighting circuit: 32 A RCBO → junction box → lamp
  2. Place a switch in the live path — this represents the PIR relay (closed when motion detected, open when time delay expires)
  3. Toggle the switch manually — observe the lamp turning on and off, simulating PIR detection and time-out
  4. Add a second switch in parallel with the first — this represents the manual override switch; closing either switch illuminates the lamp
  5. Enable Fault Simulation Mode and introduce a short circuit at the lamp — observe the RCBO tripping while the parallel switch circuit remains intact in the schematic

This demonstrates both the basic control logic and the protection behaviour of a PIR-controlled circuit.

Open ElectraSim — free, no sign-up →


Common Mistakes

MistakeRisk / ResultCorrect approach
Fitting a 3-wire PIR where no neutral existsPIR powers up but output switching is unreliable or unit failsCheck for neutral at switch position first; use 2-wire PIR if no neutral
Using a 2-wire PIR with very low-wattage LEDsLED glows or flickers when light is “off”Check minimum load rating; use 3-wire PIR for very low loads
Exceeding PIR maximum loadSwitch overheats and failsTotal connected wattage must be within the PIR’s rated maximum
Wiring permanent live to switched-live terminalPIR output stays permanently live; sensor has no effectFollow manufacturer terminal markings: L = permanent live, L out = switched output
Outdoor PIR with wrong IP ratingWater ingress, unit failure, shock hazardIP44 minimum under eaves; IP65 for exposed positions
No earth on metal-cased floodlightMetal housing becomes live under faultAlways earth Class I (metal) fittings
No isolation before workingLive conductors during installationIsolate at MCB, verify dead with voltage tester

Key Points

See It All in Action

Build and simulate the circuits from this article for free in your browser. No installation, no sign-up.

⚡ Open ElectraSim Free