Motion sensor lighting: sensor types, wiring diagram and settings
The Journal · Oct 7, 2026
Motion sensor lighting: sensor types, wiring diagram and settings
Written by Engin Demirel · Electrical technician, master instructor · 12 years of experience
Short answer: A motion sensor switches the light on when it detects movement and off after a set time. The supply live (L) and neutral (N) go into the sensor; the sensor's switched output (L' or L-out) goes to the lamp, and the lamp's neutral goes to N. In corridors, stairs, car parks and toilets it cuts energy use considerably. Wiring should be done by a qualified electrician with the circuit breaker off.
Sensor types: PIR or microwave?
- PIR (passive infrared): detects the movement of body heat. Best at movement across its field; it cannot see through glass. The most common and economical type for homes, stairs and outdoors.
- Microwave (radar): measures changes in the reflected wave, picks up small movements and walking straight towards it, and works behind thin plastic or plasterboard, so it can be hidden inside a fitting. Set the sensitivity carefully, as it can react to movement behind walls.
- Presence sensor: a more sensitive type for offices that also detects the small movements of someone sitting at a desk.
Motion sensor wiring diagram
- L (live): the live from the breaker to the sensor's L terminal.
- N (neutral): neutral to the sensor's N terminal and the lamp's neutral.
- L' / L-out (switched output): from the sensor to the lamp's live terminal.
- Earth (PE): to metal-bodied luminaires.
A switch wired in parallel with the sensor output (bypass) lets you keep the light on when needed. If several sensors must switch the same lamps, connect their outputs in parallel according to the manufacturer's diagram.
Sensor terminals and wire colours: what goes where?
| Sensor terminal | Typical wire colour (flying leads) | Connects to |
|---|---|---|
| L (live in) | Brown (black or grey in old wiring) | Live from the breaker |
| N (neutral) | Blue | Neutral; the lamp's neutral too |
| L' / L-out / A / ↓ (output) | Red or black | The lamp's live terminal |
| PE (earth) | Green-yellow | The fitting's earth; not through the sensor, joined in a connector |
Mini (recessed) motion sensors and 360° ceiling sensors use the same three terminals. Colours vary by manufacturer, so always check the diagram on the sensor's label before wiring.
How to wire a sensor to a light in 6 steps
- Switch off the breaker and confirm with a voltage tester that the circuit is dead.
- Identify the wires in the junction box: live from the breaker (L), neutral (N) and the wire to the lamp. If the sensor replaces a switch, a neutral must be present in the box.
- Connect the live to the sensor's L terminal and the neutral to N.
- Connect the sensor's L' output to the lamp's live wire; the lamp's neutral stays on N.
- Connect the earth to metal fittings, tighten the terminals and close the cover.
- Switch the breaker on. Set TIME to the shortest and LUX to the maximum for a daylight test, walk through the detection zone, then set the final time and light threshold.
Illustrated wiring diagram: one sensor, one lamp
Wire colours: in current European installations live is brown (black or grey in older wiring), neutral is blue and earth is green-yellow. Sensors with flying leads usually have brown for L, blue for N and red or black for L' (the switched output to the lamp). Manufacturers vary, so always follow the diagram on the sensor label. In older wiring a black wire may be either the incoming live or the switched output to the lamp; before connecting, find the permanent live with a voltage tester or meter, then switch off the breaker and wire it.
Two-wire (no-neutral) sensors replace a wall switch and draw their supply through the lamp; with LEDs this can cause a faint glow or flicker when the light is off. For LED lighting, three-terminal sensors with a neutral (L, N, L') are the better choice.
Two sensors, one lamp
In a long corridor, a staircase with two entrances or an L-shaped hall, one sensor cannot see everywhere. Two sensors can then switch the same lights:
- Connect the L terminal of both sensors to the live from the same breaker.
- Connect the N terminal of both sensors to neutral.
- Join the L' outputs and run them to the lamp; whichever sensor detects movement switches the light on.
Important: both sensors must be fed from the same phase; joining two different phases at L' causes a short circuit. Relay-output sensors can usually be paralleled; some electronic (triac) outputs cannot. Check that the manual allows parallel connection. With three or more sensors, or large loads, the sensors drive a contactor (or staircase timer) and the lights are fed from the contactor.
Adding a switch: keeping the light on
For cleaning or longer work you may want the light permanently on. Connect an ordinary switch in parallel between the sensor's L input and its L' output. With the switch off the sensor works normally; with the switch on the lamp stays lit regardless of the sensor.
Mini and built-in sensors
Mini PIR and microwave sensors recessed into a suspended ceiling are wired with the same L, N, L' logic. Their small housings mean small relays, so compare the total LED load with the rating on the label. In luminaires with a built-in sensor the sensor is already wired inside; only L and N (plus earth for metal housings) go to the fitting.
Wiring a light with a built-in sensor
In sensor ceiling lights, wall lights and floodlights the sensor is wired inside the fitting. The fitting only takes L (live), N (neutral) and earth for metal housings; there is no separate L'. If it replaces an existing light, the switched live from the wall switch goes to the fitting's L.
When used with a switch, the switch must stay on: if it is off, the sensor has no power and the light will not come on. Some models switch to permanent-on mode when the switch is flicked off and on quickly; the manual says so. Sensor fittings are in emergency and sensor lighting.
One sensor, several lights
One sensor can switch several lights: wire the lights in parallel on the sensor's L' output, with each lamp's neutral to N. The limit is the load rating on the sensor label. The figure for incandescent and halogen (for example 1,200 W) does not apply to LEDs; because LED drivers have high inrush current, the LED limit is usually 1/4 to 1/10 of it (for example "LED max. 200 W"). If the total LED load is higher, let the sensor drive a contactor (relay) and supply the lights through it.
Settings: TIME, LUX and SENS
- TIME: how long the light stays on after the last movement. 1–3 minutes for corridors and 2–5 minutes for stairs are usually enough.
- LUX (light threshold): stops the sensor switching on when there is enough ambient light, avoiding daytime operation.
- SENS (sensitivity/range): detection distance. Too high a setting causes triggers from passing cars or plants moving in the wind.
Mounting height and position
Ceiling 360° sensors are usually fitted at 2.5–4 m and cover a circle around that point. Wall 180° sensors work best at 1.8–2.5 m. Place a PIR so that people cross its field sideways, and away from heaters, air-conditioning vents or direct sunlight.
Compatibility with LED lights
LED drivers draw a short high current at switch-on (inrush). The sensor's relay must suit the total power and inrush of the LED fittings; for many fittings on one sensor, use a sensor with a high-inrush relay or a contactor. Some sensors need a minimum load; if very low-power LEDs flicker or will not switch off, choose a suitable sensor type.
Where to use them
- Stairwells and corridors in apartment blocks
- Car parks, storage and plant rooms
- Toilets, dressing rooms, pantries
- Garden paths, entrances and driveways (IP44 under eaves, at least IP54 where exposed to rain)
Luminaires with built-in sensors need less cabling and labour than a separate sensor and fitting, and are usually preferred in new projects.
If the sensor misbehaves: checklist
- Never switches on in daytime: the LUX setting is low and the ambient light is above the threshold. Turn it towards the sun symbol.
- Stays on all the time: TIME is long, SENS is high, or the sensor sees a heat source, an air-conditioning vent or a moving plant. A parallel override switch may have been left on.
- Switches on by itself: a microwave sensor may be seeing movement behind a thin wall or door; reduce the sensitivity.
- LEDs glow faintly after switching off: a no-neutral (two-wire) sensor or capacitive leakage in the cable. Use a sensor with a neutral.
- Fails after a short time: the inrush current of many LED drivers wears out the relay. Reduce the load or use a contactor.
If the problem persists or you are not sure about the wiring, switch off the breaker and leave the job to a qualified electrician.
- → Emergency and sensor lighting
- → Garden lighting
- → IP ratings explained
- → Smart home systems in Bursa (KNX and Zigbee)
- → Stair lights and sensor stair lights
Frequently asked questions
How do you wire a motion sensor?
Live (L) and neutral (N) go into the sensor; the sensor's switched output (L') goes to the lamp's live and the lamp's neutral to N. Metal fittings are also earthed. Wiring should be done by an electrician with the breaker off.
What is the difference between PIR and microwave sensors?
A PIR detects moving body heat and cannot see through glass. A microwave sensor measures changes in a reflected wave, picks up smaller movements and works behind thin plastic or plasterboard.
How long does a sensor light stay on?
It is set with TIME, usually from a few seconds up to 15 minutes. 1–3 minutes for corridors and 2–5 minutes for stairs are usually enough.
Why does the motion sensor not switch on in daylight?
The LUX setting stops it when ambient light is above the chosen level. Set LUX to maximum (daylight) if it should also work in daytime.
At what height should a motion sensor be fitted?
Ceiling 360° sensors usually at 2.5–4 m, wall 180° sensors at 1.8–2.5 m.
Does a sensor work with LED lights?
Yes, but its relay must handle the inrush current of the LED drivers. For many LED fittings on one sensor, use a high-inrush sensor or a contactor.
How do you wire two motion sensors to one light?
Connect the L terminal of both sensors to the same live, both N terminals to neutral, and join the L' outputs to the lamp. Both sensors must be on the same phase and the manual must allow parallel connection.
What are the wire colours on a motion sensor?
On most sensors brown is live (L), blue is neutral (N) and red or black is the switched output to the lamp (L'). Colours vary by brand, so follow the diagram on the sensor label.
Can you add a switch to a motion sensor?
Yes. Connect the switch in parallel between the sensor's L input and its L' output. With the switch on the light stays on permanently; with it off the sensor takes over again.
How do you wire a light with a built-in sensor?
A light with a built-in sensor only needs live (L), neutral (N) and earth for metal housings. If there is a wall switch, it must stay on; when it is off the sensor does not work.
How do you wire a mini motion sensor?
Mini sensors use the same L, N and L' terminals: brown to live, blue to neutral, and the red or black output to the lamp's live. Their relays are small, so compare the LED load with the label.
What is the L' terminal on a sensor?
L' (L-out, sometimes A or an arrow) is the sensor's switched output. When the sensor detects movement it carries the live and goes to the lamp's live terminal.
How many lights can one sensor switch?
As many as you like in parallel, as long as the total load stays under the rating on the sensor label. LEDs have a separate, lower limit; above it, the sensor should drive a contactor.
Can a sensor light be used with a switch?
Yes, but the switch must stay on, because the sensor gets its power through it. To keep the light on permanently, add a separate switch in parallel with the sensor.