Of everything in the smart-home category, this is the one we recommend most often to people who rent, or who simply do not want an electrician in the house. An E27 motion sensor bulb holder puts the PIR sensor and the lamp socket in one housing — two wires in, bulb screwed in the front, done. Here is how it wires, and the real difference between the Z04-N and Z04-Q versions.
What it is
It is a bulb holder with a brain. The white base screws to a wall or ceiling, two wires connect to your lighting circuit, and an E27 socket faces outward. Screw in any normal E27 bulb — LED, energy saver, filament — and the holder switches it on when its PIR sensor detects a person, then off again after the delay.
The reason it is so popular is that there is no switch to install and no third wire to find. If a lamp point already exists, this replaces the holder that is on it.
The wiring diagram

Two wires, and that is genuinely all: brown to live, blue to neutral. This surprises people who have wired a separate PIR sensor before, because those need three — a live in, a neutral, and a switched live out to the lamp. Here there is no third wire because there is no separate lamp to feed: the E27 socket is inside the same housing, already connected to the switching contact. Everything else is done for you.
Step by step
- Switch off at the breaker and confirm the circuit is dead with a tester.
- Take down the old holder and note which wire is live and which is neutral.
- Hold the new base against the wall, mark the two screw positions, drill and fit the plugs (both are supplied).
- Connect brown to live, blue to neutral. Sleeve the joints properly — do not leave bare copper in the box.
- Screw the base down, then screw your bulb into the socket.
- Restore power and walk away for a minute; most units run a short self-test on first power-up.
⚠ This is a 220V mains connection. It is a simple one, but it is still mains. If you are not sure, buy the holder and let an electrician fit it.
Z04-N vs Z04-Q — which should you buy?
| Z04-N (Fixed) | Z04-Q (Adjustable) | |
|---|---|---|
| On-time after motion | Preset at the factory | Adjustable with a knob |
| Day/night control | Yes | Yes |
| Setup needed | None — wire and forget | One dial to set once |
| Best for | Store rooms, gates, porches | Staircases, corridors, garages |
| Price | Same — Rs 950 either way | |
Here is the practical way to choose. A fixed delay is fine when the light only needs to cover the moment you arrive — opening a gate, grabbing something off a shelf. It is not fine on a staircase, because a fixed short delay drops you into the dark halfway up. If the light has to stay on while you are still moving through the space, buy the Z04-Q Adjustable. Otherwise the Z04-N Fixed is one less thing to think about.
Where it works well — and where it doesn’t
Works well: staircases, corridors, entrance porches, store rooms, garages, basements, back yards, servant quarters, shop store-rooms. Anywhere a light gets left burning because the switch is at the wrong end.
Does not work well: rooms where you sit still. A PIR only sees movement, so if you settle down to read, the light will eventually decide the room is empty and switch off. For a lounge or a study, use a normal switch — or a wall panel sensor where you can set a long hold time.
Frequently asked questions
Does it work with LED bulbs?
Yes, and that is the best pairing — an LED bulb draws so little that you will never approach the holder’s rated load.
Can I mount it on the ceiling?
Yes. Ceiling mounting actually gives better coverage because the sensor looks down over the whole room instead of across it.
Will it turn on during the day?
No — the built-in light control keeps it off while there is enough ambient light. That is what stops it wasting power in a sunlit corridor.
What is the detection range?
Roughly 3–5 metres in practice, and best when someone walks across the sensor’s view rather than straight at it.
Can I still use my wall switch?
Yes. Leave the existing switch in the live feed and it becomes a master on/off for the whole thing.
Related guides
- How to wire a 220V PIR motion sensor light switch
- Ceiling sensor or wall panel?
- Smart home upgrades that need no Wi-Fi
Get the parts
Both versions are on the shelf at Smart Home | Arduino Corner — Shaheen Market, DAV College Road, Rawalpindi. Rs 950 either way, same-day delivery in Rawalpindi and Islamabad, cash on delivery across Pakistan. Not sure which one? Message us on WhatsApp and tell us which room it is for.