HOW-TO GUIDE

How to Test a 3 Wire Proximity Sensor With a Multimeter

To test a 3 wire proximity sensor with a multimeter, power it from 10–30 V DC (24 V DC is standard) on brown and blue, then read DC volts between the black output and blue while you move a target in and out of range. A PNP sensor should swing from about 0 V to near the supply voltage; an NPN sensor should drop from near supply to about 0 V, provided a load or pull-up resistor is connected. If the status LED and the output both stay unchanged, the sensor or its wiring has failed.

By the OhmSavvy Research Team ·

Fluke 117 True RMS digital multimeter, front view
The Fluke 117 (True RMS, CAT III 600V, built-in non-contact voltage detection) suits control-panel work where mains and 24 V DC circuits share a cabinet. See our Fluke 117 review.

Lock out the machine before you reach in

  • A sensor that suddenly switches can start a conveyor, press or cylinder. Follow your site's lockout/tagout procedure, isolate stored air and hydraulic energy, and keep hands clear of moving parts.
  • Sensors run at 24 V DC, but the same panel usually carries 230 V (UK) or 120 V (North America) mains and often three-phase supply. Use a meter rated for the panel and never probe terminals you have not identified.
  • Where possible, unplug the sensor and test it on the bench instead.

Inductive vs capacitive proximity sensors

Both types switch an electronic output when something comes close, with no physical contact. That makes them the non-contact cousin of the mechanical limit switch, and the reason you test them powered rather than with continuity.

Inductive

Senses metal only, using an oscillating magnetic field. Range is a few millimeters to a few tens of millimeters, rated for mild steel.

Capacitive

Senses metal, plastic, wood, liquids and granules through changes in capacitance. Usually has a sensitivity adjuster screw.

Flush vs non-flush

Flush (shielded) heads mount level with metal and sense a shorter distance. Non-flush heads reach further but need clear space around the face.

Brown, blue and black: the 3 wire proximity sensor colors

Most DC sensors follow the IEC color convention. Treat it as typical, not guaranteed: check the label or datasheet, especially on older or non-European parts.

Wire (typical)FunctionM12 connector pin (typical)
BrownSupply positive, +10 to +30 V DCPin 1
BlueSupply 0 V (negative)Pin 3
BlackSwitched outputPin 4
White (4-wire types)Second or complementary outputPin 2

PNP (sourcing) vs NPN (sinking) outputs

The output is a transistor switch, and the type decides which way it switches. A PNP sensor sources current: when active, it connects the black wire to the positive supply, so the load sits between black and 0 V. An NPN sensor sinks current: when active, it connects black to 0 V, so the load sits between black and positive. Broadly, PNP is the norm in European machinery and NPN is common in Asian equipment, but both appear everywhere.

PNPsensorbrownblueblackloadto 0 VVNPNsensorbrownblueblackpull-upto +VV+24 V DC0 VPNP reads high when a target is present; NPN reads low
Bench test wiring. A PNP needs a load from black to 0 V; an NPN needs a pull-up from black to +V. Without the resistor, an open transistor output has nothing to pull it either way.

1Power the sensor at 10–30 V DC

Connect brown to the positive and blue to the negative of a DC supply inside the sensor's range; 24 V DC is the usual industrial control voltage. Then fit a resistor of roughly 2.2 to 4.7 kΩ, rated at least 0.5 W, as the load (PNP) or pull-up (NPN). At 24 V a 2.2 kΩ resistor draws about 11 mA, well under the typical output rating. Never connect the black output straight to a supply rail without a resistor: that is a short circuit when the output turns on.

2Measure the output with and without a target

Set the meter to DC volts. Put the black probe on blue (0 V) and the red probe on the black output wire. Read it with nothing in front of the sensor, then bring a steel target (a spanner works) up to the face, inside the rated distance.

0.02V DCV PNP, no target22.9V DCV PNP, target present
Typical readings for a normally open PNP sensor on 24 V DC with a load resistor: near 0 V with no target, then about 1 to 2 V below the supply once the target is detected.

An NPN sensor with a pull-up reverses this: close to 24 V with no target, falling to roughly 1 V or less when it switches. Without a pull-up, an NPN output usually reads near 0 V in both states, because nothing lifts the black wire while the transistor is off and the meter's own input ties it to 0 V. That is the most common reason a good NPN sensor gets condemned. If you need a refresher on DC voltage mode, see how to use a multimeter.

Quick sanity check on supply current

In series on the mA range in the brown wire, an idle sensor typically draws a few milliamps to around 20 mA. Far more than the datasheet figure points to an internal short.

The status LED, sensing distance and NO vs NC

  • Status LED: most sensors light an LED when the output is on. It is a useful first clue, but it only shows the sensor's internal state. A shorted or overloaded output can leave the LED lit with no voltage on the black wire.
  • Sensing distance: slide the target in slowly and note where it switches. Much shorter than rated suggests a damaged face, swarf or the wrong target metal.
  • NO vs NC: a normally open sensor turns its output on when a target arrives; a normally closed one turns it off. The part number or datasheet says which.

Testing a proximity sensor on the machine

In place, the PLC or relay input already provides the load. With the machine locked out except for the 24 V DC control supply (as your procedure allows), trigger the sensor by hand and measure at the input terminal against 0 V, then at the sensor connector. A signal at the sensor but not at the input means a cable or terminal fault; flexing cables on moving axes are frequent culprits.

Reading the result

What you seeLikely meaning
Output swings fully with target; LED followsSensor is good; look at cable or controller
No supply voltage between brown and blueSupply, fuse or wiring fault, not the sensor
LED changes but output never movesMissing load or pull-up, or a failed output stage
Nothing changes, supply presentDead sensor, or target material/distance out of range
Output stuck on with no targetSwarf on the face, nearby metal, or a shorted output
Switches only very close or intermittentlyDamaged face, wrong target, or loose mounting

A replacement must match the output type, NO or NC function, supply range, thread size and flush style.

Meters in our reviews for panel work

Fluke 117 True RMS digital multimeter
Fluke 117

True RMS, CAT III 600V, non-contact voltage detection built in.

Klein Tools MM400 auto-ranging digital multimeter
Klein Tools MM400

Auto-ranging, CAT III 600V, 4,000-count backlit display; also reads temperature, capacitance, frequency and duty cycle.

As an Amazon Associate I earn from qualifying purchases. Prices and availability are shown on Amazon.

Frequently asked questions

How do I know if my proximity sensor is PNP or NPN?

Check the label or part number first; many makers use a letter in the code. If it is unreadable, power it and fit a resistor from black to blue. If the black wire rises to near supply when a target is present, it is PNP. If nothing happens, move the resistor from black to brown: a black wire that drops near 0 V then means NPN.

Why does my proximity sensor LED come on but the machine does not respond?

The LED shows that the sensor has detected the target, not that the signal reached the controller. Measure at the PLC or relay input terminal. A correct voltage at the sensor but not at the input points to a broken cable or loose terminal. A correct voltage at the input points to the controller, its settings, or a PNP sensor wired to an NPN-type input.

Can I test a proximity sensor with a 9 V battery?

Sometimes, but it is below the usual 10 V minimum, so many sensors will not switch reliably or at all. Two 9 V batteries in series give 18 V, inside the typical 10–30 V DC range. A bench supply or the machine's own 24 V DC control supply is the better choice, with a resistor on the output.

What should a proximity sensor read with no target present?

For a normally open PNP sensor with a load resistor, close to 0 V between black and blue. For a normally open NPN sensor with a pull-up, close to the supply voltage. Normally closed versions read the opposite. With no resistor at all, the reading may float somewhere in between, which is not a fault on its own.

Does a stainless steel or aluminum target change the sensing distance?

Yes, for inductive sensors. Rated sensing distance is quoted for mild steel. Stainless steel, brass, aluminum and copper usually trigger at a noticeably shorter distance, often well under the rated figure; the datasheet gives correction factors. If a sensor fails only on a non-steel part, test it again with a steel target before replacing it.

Where to go next

More multimeter guides and reviews