HOW-TO GUIDE

How to Test a Photoelectric Sensor With a Multimeter

To test a photoelectric sensor with a multimeter, confirm it has its rated DC supply, then watch the output voltage while you break and restore the light beam. The output should change state cleanly every time, in step with the indicator LED. If the supply is present but the output never changes, check alignment, the lens and the light-on/dark-on setting before replacing the sensor. The same idea works for industrial photo-eyes and for the safety sensors on a garage door.

By the OhmSavvy Research Team ·

Fluke 115 compact True RMS digital multimeter, front view
The Fluke 115 is Fluke's compact field-service meter: True RMS, CAT III 600V and a 6,000-count backlit display, useful in a dim machine guard. See our Fluke 115 review.

Isolate guarded machinery and the opener first

  • Photo-eyes often start or stop conveyors and robots. Apply lockout/tagout before reaching inside a guard, and remember the sensor itself may still be live from the 24 V DC control supply.
  • Light curtains and other safety-rated beams protect people. Don't bypass, re-aim or swap them without following the machine maker's procedure.
  • Garage door openers plug into 230 V (UK) or 120 V (North America) mains. The sensor wiring is low voltage, but unplug the opener before disconnecting or rewiring anything at its terminals.

A photo-eye is not a photoresistor

A photoresistor (LDR) is a single passive component whose resistance falls in bright light, and you check it on the ohms range; see how to test a photoresistor for that. An industrial photoelectric sensor is a complete powered device: an LED light source, a photodiode or phototransistor receiver, an amplifier and a transistor output stage in one housing, or split across two. You test it the way a controller would see it: powered, on DC volts.

Through-beam, retro-reflective and diffuse sensing

Through-beambeam blocked = detectemitterreceiverobjectRetro-reflectivebeam blocked = detectsensorreflectorobjectDiffuselight returned = detectsensorobject reflects
Three sensing modes. Through-beam and retro-reflective detect an object that interrupts the light; diffuse detects light bounced back from the object itself.

Through-beam

Separate emitter and receiver facing each other. Longest range; the emitter usually has only power wires, so test the output at the receiver.

Retro-reflective

Emitter and receiver share one housing and bounce light off a reflector. Polarised versions resist false triggering from shiny objects.

Diffuse

The target reflects light straight back. Range depends on the object's color and finish; background-suppression types ignore things behind it.

Light-on vs dark-on operation

Before deciding a photoelectric sensor is wrong, find out which mode it is set to. The same sensor can read the opposite way after someone flips its selector.

ModeOutput on whenThrough-beam, object presentDiffuse, object present
Light-on (L.ON)Receiver sees lightOffOn
Dark-on (D.ON)Receiver sees no lightOnOff

1Check the supply at the sensor

Most industrial photo-eyes run on 10–30 V DC, nominally 24 V DC; the label states the range. Set the meter to DC volts and measure between the positive and 0 V terminals, typically the brown and blue cores. Check both halves of a through-beam pair: a receiver with power but an emitter without it looks exactly like a permanently blocked beam.

2Test the photoelectric sensor output

Measure from the output core (usually black) to 0 V. Block the beam with a piece of card, then clear it, several times. With the sensor connected to its PLC input or relay, that input supplies the load. On the bench, add a resistor of a few kilohms: from output to 0 V for a PNP (sourcing) sensor, or from output to positive for an NPN (sinking) sensor. A PNP output rises to within a volt or two of the supply when on; an NPN output falls close to 0 V when on, and only shows that change if the resistor is fitted. Some photo-eyes have a relay output instead, which you check on continuity with the sensor powered and the load disconnected.

0.01V DCV beam clear23.1V DCV beam broken
Typical PNP output on a 24 V DC supply, dark-on through-beam: about 0 V with the beam clear, close to the supply with the beam broken. A dark-on NPN would show the reverse.

Alignment, the lens and the emitter

Many photo-eye faults are optical, not electrical: dust, oil mist and condensation weaken the received light until the sensor works only some of the time. Clean the lens with a soft cloth. Re-aim the emitter and receiver (or sensor and reflector) slowly while watching the stability indicator, which many sensors provide: aim for the middle of the range where it stays lit, not the edge where it just switches. A loose bracket that vibrates out of line gives classic intermittent faults.

If the receiver never sees light, check the emitter. Visible red beams show as a spot on a piece of paper; infrared beams often show as a glow on a phone camera screen.

Testing garage door safety sensors

Garage door safety sensors are a small through-beam pair mounted a few inches (around 15 cm) above the floor on either side of the door. The opener powers them through a thin two-core wire at low voltage, often quoted around 12 V DC; some brands run lower or send a pulsed signal, so the meter may show an averaged value. Your opener manual gives the expected figure.

  1. Look at the LEDs. On many systems the sending unit shows a steady light whenever powered, and the receiving unit lights steadily only when it sees the beam. A dark or flickering receiver means misalignment, a dirty lens or a wiring fault.
  2. With the opener plugged in, measure DC volts across each sensor's two terminals. Near zero at one sensor but present at the opener terminals points to a broken or stapled-through wire.
  3. Do a beam-break test: start closing the door, then pass an object such as a cardboard box through the beam. The door should stop and reverse. If it does not, don't use the door until it is fixed.
  1. 01

    Supply

    Rated volts at both units

  2. 02

    Indicators

    Power and output LEDs

  3. 03

    Optics

    Clean lens, realign

  4. 04

    Output

    Changes with the beam

  5. 05

    Wiring

    Continuity to controller

A quick fault-finding order that works for both industrial photo-eyes and garage door sensors.

What the readings mean

ObservationMost likely cause
No supply voltage at the sensorFuse, power supply or cable fault upstream
Supply fine, indicator never changesMisaligned, dirty lens, dead emitter, or out of range
Indicator changes, output does notNo load or pull-up on the bench, or a failed output
Output works but reads backwardsLight-on/dark-on mode set the wrong way
Switches randomlyVibration, marginal alignment, reflections or strong sunlight
Sensor fine, controller sees nothingBroken core or loose terminal between them

A cable fault shows up as OL on continuity along one core; see what OL means on a multimeter. For the basics of DC volts and continuity, read how to use a multimeter.

Meters in our reviews

Fluke 115 True RMS digital multimeter
Fluke 115

True RMS, CAT III 600V, 6,000-count backlit display in a compact body.

KAIWEETS KM200s True RMS digital multimeter
KAIWEETS KM200s

True RMS, CAT II 600V, auto-ranging, backlit. Our budget pick for home jobs such as garage door sensors.

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 photoelectric sensor is bad?

Power it, confirm the supply voltage at its terminals, then block and clear the beam while measuring the output. A good sensor switches its output and indicator together every time. If the indicator responds but the output does not, the output stage or wiring is suspect. If neither responds after cleaning and realigning, the sensor has probably failed.

What is the difference between light-on and dark-on?

Light-on (light-operate) turns the output on when the receiver sees its light. Dark-on (dark-operate) turns the output on when the light is missing. On a through-beam sensor, dark-on means the output switches when an object breaks the beam. Many sensors select the mode with a switch, a dial or a dedicated wire.

Why do my garage door sensors have a solid light but the door still won't close?

If both indicators are steady, the opener should see a clear beam, so check the wall control, the force and travel limits, and whether a lock or vacation mode is on. Also check for sunlight shining straight into the receiver lens, which can upset some sensors. Consult the opener manual for its specific flash codes.

Can I see if an infrared photo-eye emitter is working?

Often, yes. Many phone cameras, especially front-facing ones, pick up near-infrared light. Point the camera at the emitter lens and look for a faint glow on the screen. Many industrial sensors use visible red light anyway, which you can see on a sheet of paper held in the beam. No glow suggests no power or a dead emitter.

Can a photoelectric sensor be tested with the ohms setting?

Not meaningfully. Unlike a photoresistor, a photo-eye contains active electronics that only work when powered, so resistance across its wires tells you little. The useful exception is checking the cable: with everything disconnected, continuity along each core from sensor plug to controller terminal rules out a broken wire. Test the sensor itself powered, on DC volts.

Where to go next

More multimeter guides and reviews