Wiring a 4-Wire Motion Sensor: What Actually Happens When You Hook It Up
Four-wire motion sensors are everywhere in residential and light commercial installs. They're also the ones where people mess up most often, usually because they confuse them with 3-wire units and assume the extra conductor is spare or optional. It isn't. A 4-wire motion sensor has four distinct conductors. Two handle power: line (hot) and neutral. The other two handle the switched output: one is the switched hot going out to the load, and the other is a separate traveler or control wire depending on the manufacturer. The exact configuration varies by brand, which is why following a proper 4 Wire Motion Sensor Light Wiring Diagram matters before you throw breakers on.
4 Wire Motion Sensor Light Wiring Diagram Basics
Here's how the wires typically break down on a standard resistive-load setup: Black wire — Line (unswitched hot) from the supply. This brings power into the sensor. White wire — Neutral from the supply. Completes the circuit for the sensor's internal electronics. Don't cap this off thinking it's spare. The sensor won't power without it.
Red wire — Switched hot to the load. This is what energizes the light when motion is detected. Green or bare copper wire — Ground. Direct connection to the grounding bus or ground screw on the box. Non-negotiable on metal boxes and required by code almost everywhere. That's the basic layout. Real installations are messier. Here's what you actually need to know.
Get the Full Details

Step-by-Step: Wiring the Sensor to the Light
Start at the junction box where the sensor will mount. Turn the breaker off and verify it's dead with a non-contact tester or multimeter. I've seen guys skip this step and get spanked by a hot wire they thought was dead. Doesn't matter how experienced you are. It happens. Run a suitable gauge cable from the power source to the sensor location. For a standard 15-amp circuit, 14-gauge THHN in conduit or 14/2 NM-B works fine. If you're running 20 amps, go 12-gauge. Don't mix gauges on the same circuit without an appropriate overcurrent device. Come back to the sensor itself. Strip about 3/4 inch of insulation from each wire. If you're working with older knob-and-tube or Aluminum wiring, that's a whole other conversation and you should probably call someone who actually deals with that stuff regularly. I'm not your person for that.
Connect the black supply wire to the black sensor wire using a wire nut or Wago lever nut. Connect the white supply wire to the white sensor wire. Connect the ground wires together and to the sensor's ground terminal. The red wire goes from the sensor's switched output to the hot wire of the light fixture. The neutral from the supply and the neutral from the light fixture connect together in the fixture box, bypassing the sensor entirely. That's the key point people miss. The sensor only switches the hot side. The neutral path goes straight from panel to fixture. Here's where my practical experience comes in. I once wired a 4-wire sensor into an existing outdoor floodlight circuit where the previous installer had jumped the neutral through the sensor body itself. The sensor would click on and off but the light stayed dim. Traced it down to a floating neutral that was completing its path through the lamp filament instead of returning to the panel. Moved the neutral splice to the fixture box, problem gone. Five minutes of work after thirty minutes of diagnosing.
Common Mistakes That Will Bite You
Assuming all 4-wire sensors are pin-compatible. They aren't. Leviton, Lutron, Hunter, Philips — they each route their internal connections slightly differently. A red wire on one brand might be switched hot. On another it could be a companion relay output for a separate circuit. Check the manufacturer's diagram on the product page or inside the packaging before you connect anything. Using the sensor to switch both hot and neutral. Some cheap sensors are rated for load-side neutral switching. Most aren't. If you wire a neutral-switching sensor backwards, you'll have a live fixture even when the sensor is off. That's a shock hazard and it will trip GFCI protection intermittently. Overloading the sensor's rating. A typical 4-wire PIR sensor handles 300 watts resistive or 150 watts LED. If you're running a bank of high-bay LEDs that add up to 600 watts, the sensor will overheat and fail. Either use a relay module or downgrade the load. I've replaced three blown sensors in one year from guys running 400-watt equivalent LED arrays through 150-watt sensors.

Ignoring the minimum load requirement. This is the one nobody tells you about. Many motion sensors need a minimum wattage to stay powered internally. If you connect a 5-watt LED bulb to a sensor designed for a 40-watt minimum, it will cycle the light on and off repeatedly. The sensor thinks the load is a fault. Add a load-resistor kit or swap to a sensor rated for low-wattage LED loads. $8 part, ten minutes of labor. Avoids a service call.
When 4-Wire Isn't the Right Choice
There are scenarios where a 4-wire sensor adds complexity without solving anything. If you're replacing a standard wall switch with no neutral present in the switch box, a 4-wire sensor won't work unless you run a neutral back. In that case, a 3-wire smart switch with internal bypass or a line-voltage PIR that draws minimal current might be the answer. Alternatively, consider a battery-powered sensor that mounts on the fixture instead. No wiring needed, just replace the batteries every 12 to 18 months depending on usage. Also, if you're installing near strong electromagnetic interference — like next to a variable-speed drive or large transformer — the PIR element can give false triggers. I had a case where a sensor in a mechanical room kept tripping at 2 AM because a nearby VFD was creating enough RF noise to confuse the detection circuit. Moved it six feet away and added a ferrite bead on the power leads. Fixed it. Sometimes the solution isn't better wiring. Sometimes it's better placement.
Testing After Installation
Once everything is connected and the cover is on, turn the breaker back on. Set the sensor to its shortest delay and lowest light threshold. Walk through the detection zone and verify the light comes on. Stand still and confirm it turns off after the set time. Check for any buzzing or clicking from the sensor body — that usually means the load is borderline on the rating and the internal relay is arcing. If you hear it, reduce the load or upgrade the sensor. That's the process. It's straightforward when you understand what each wire does. It's frustrating when you don't. The diagram saves you from the frustration.