🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Manufacturing & Marine › Robotics / Mechatronics › Industrial Sensors and Signal Conditioning for Mechatronics › Lesson 3
MFG-MECH15-04 · Lesson 3 · 14.5 clock hours · lab

Photoelectric Sensors: Through-Beam, Retro-Reflective, and Diffuse

Objective. Students install and align all three photoelectric sensor modes, measure operating range against datasheets, and explain when each mode is the correct choice for a packaging-line application.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by a licensed engineer or certified journey-level tradesperson or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Photoelectric Sensors: Through-Beam, Retro-Reflective, and Diffuse

Photoelectric sensors detect objects by emitting a beam of light—usually infrared (IR) or visible red—and monitoring what happens to that beam. They are among the most common sensors on packaging and manufacturing lines because they are fast, non-contact, and work over distances from a few millimeters to many meters. Understanding the three main operating modes lets you choose the right sensor for the job and commission it correctly.

How Photoelectric Sensors Work

Every photoelectric sensor has an emitter (light source) and a receiver (photodetector). The emitter pulses the light beam at a fixed frequency to reject interference from ambient light. The receiver's internal circuit compares the amount of light it sees against a threshold; when the object interrupts or reflects enough light, the output switches. The output is normally either a PNP (sourcing) or NPN (sinking) transistor switch, wired directly to a PLC digital input.

Excess gain is the ratio of light actually reaching the receiver to the minimum light needed to switch the output. An excess gain of 1 means the sensor is right at the edge of detection—unreliable. A margin of at least 2 (and ideally 5 or higher for dusty or dirty environments) ensures stable operation when lenses get slightly contaminated.

Through-Beam Mode

The emitter and receiver are mounted in separate housings directly across from each other. The beam travels in a straight line; an object that interrupts the beam breaks the light path and triggers the output. This mode delivers the highest sensing range and the greatest excess gain of the three modes. Through-beam sensors are the best choice for detecting opaque objects reliably at long distances, for counting small parts on a fast-moving conveyor, or anywhere maximum detection reliability is required.

Installation note: the emitter and receiver must be precisely co-aligned. Even a few degrees of angular offset can reduce signal strength significantly. Most manufacturers provide an alignment LED or a signal-strength indicator on the receiver housing—use it. Mechanical brackets with fine-adjustment slots make alignment repeatable.

Retro-Reflective Mode

The emitter and receiver share one housing. The beam travels out to a corner-cube reflector (retroreflector) mounted on the opposite side, bounces straight back, and enters the receiver. An object that interrupts the beam causes the output to switch. Wiring and installation are simpler than through-beam because only one cable run is needed. Sensing range is moderate—less than through-beam but greater than diffuse.

The main limitation is shiny or transparent objects. A highly polished lid or clear bottle can act like a retroreflector itself, reflecting enough beam energy back to the receiver even when it is present, so the sensor never detects it. For this situation, use a polarized retro-reflective sensor: the emitter sends polarized light, the corner-cube reflector rotates polarization 90°, and the receiver accepts only the rotated polarization. A shiny flat object does not rotate polarization, so it is detected reliably.

Diffuse (Proximity) Mode

Again, emitter and receiver share one housing. The beam strikes the target object, and the sensor detects the diffusely reflected light that scatters back toward the receiver. No reflector or second housing is needed. Diffuse sensors are the simplest to mount and wire, but they have the shortest sensing range and are sensitive to the target's color and surface reflectivity. A matte black object absorbs more light and reduces the effective range compared to a white or bright surface.

Background suppression (BGS) is a variant of diffuse mode that uses two receiver elements and triangulation to detect objects only within a defined distance window, ignoring the background behind the target. BGS sensors are useful for detecting labels or objects against a conveyor belt or machine structure where the background is close.

Selecting the Right Mode: Packaging-Line Guidance

| Scenario | Recommended Mode | Reason |

|---|---|---|

| Opaque bottles, reliable detection needed | Through-beam or retro-reflective | High excess gain, long range |

| Clear PET film or glass containers | Through-beam (or polarized retro-reflective) | Clear targets pass most light; high excess gain overcomes transparency |

| Shiny metal lids | Polarized retro-reflective | Rejects specular reflection from target |

| Small part counting at high speed | Through-beam | Fast response, narrow beam, highest reliability |

| Presence detection with simple one-sided mounting | Diffuse (BGS if background is close) | Only one cable run; acceptable if surface is cooperative |

Safety Before You Wire

Before installing or wiring any sensor on the bench conveyor section, apply the lockout/tagout procedure per OSHA 29 CFR 1910.147: isolate the 24 VDC supply, verify absence of voltage with a multimeter set to DC volts, and attach your personal lock. Even low-voltage 24 VDC control circuits can cause injury if shorted and can energize downstream actuators unexpectedly. Wear safety glasses at all times in the lab. Do not stare directly into the sensor's IR or red beam; although most industrial photoelectric sensors are low-power, prolonged direct exposure to an intense visible red beam is inadvisable. Follow the lab's machine-guarding requirements per OSHA 1910.212 when the conveyor is energized for testing.

Reading the Datasheet

Every sensor datasheet lists: sensing range (maximum reliable distance at rated conditions), excess gain curves (gain vs. distance), response time (milliseconds or microseconds), supply voltage range, output type (PNP/NPN), and IP rating. Always verify your measured sensing distance against the datasheet maximum; if your measured reliable distance is significantly less than the rated value, check alignment, lens cleanliness, and wiring before assuming a defective sensor.

Key terms9

Excess gainThe ratio of light energy received to the minimum energy required to switch the sensor output; a value well above 1 (typically 5 or higher in dirty environments) ensures reliable detection despite lens contamination or marginal alignment.
Through-beam modeA photoelectric sensor configuration in which the emitter and receiver are in separate housings facing each other; detection occurs when a target interrupts the beam between them.
Retro-reflective modeA photoelectric sensor configuration in which emitter and receiver share one housing and the beam is returned by a corner-cube reflector; an object that interrupts the beam is detected.
Diffuse (proximity) modeA photoelectric sensor configuration in which emitter and receiver share one housing and the sensor detects light reflected diffusely off the target object itself; no separate reflector is required.
Background suppression (BGS)A variant of diffuse mode that uses triangulation to detect objects only within a set distance window, ignoring surfaces farther away; useful when the background is close to the target.
Polarized retro-reflectiveA retro-reflective sensor that transmits polarized light; the corner-cube reflector rotates polarization so the receiver accepts only reflected light from the retroreflector, allowing detection of shiny targets that would otherwise fool a standard retro-reflective sensor.
PNP output (sourcing)A sensor transistor output that supplies current (sources) to the PLC input when active; the output terminal goes to the positive supply rail through the load.
Response timeThe time between a change at the sensor (beam interrupted or restored) and the corresponding change at the sensor's output; a key parameter for high-speed counting applications.
Corner-cube reflectorA retroreflector made of three mutually perpendicular mirror surfaces that returns light back toward its source regardless of the angle of incidence; used as the target in retro-reflective sensor installations.

Worked examples4

1. A through-beam sensor datasheet lists a maximum sensing range of 3 m at an excess gain of 1. During your lab installation you measure reliable detection up to 1.8 m. Calculate the excess gain at 1.8 m, given that the manufacturer's excess-gain curve shows the sensor produces an excess gain of approximately 2.8 at that distance. Is the installation acceptable for a dusty packaging environment?
  1. Excess gain at 1.8 m = (light energy received) / (minimum switching energy). The datasheet curve states the sensor delivers excess gain ≈ 2.8 at 1.8 m.
  2. Compare to the recommended minimum for a dusty or contaminated environment: excess gain ≥ 5 is preferred; gain ≥ 2 is the absolute minimum for clean conditions.
  3. Excess gain of 2.8 is above the absolute minimum of 2 but below the recommended 5 for a dusty environment.
  4. Conclusion: at 1.8 m the installation is marginal for a dusty packaging line. Either move the sensor closer to reduce the working distance (increasing excess gain) or choose a higher-power sensor model.
Answer: Excess gain ≈ 2.8 at 1.8 m. Acceptable for a clean environment but not recommended for dusty conditions; reduce working distance or upgrade sensor.
2. A diffuse sensor has a rated sensing range of 200 mm to a white target (90% reflectivity). The actual target is a matte gray plastic with 18% reflectivity. Estimate the approximate effective sensing range using the proportional reflectivity relationship: effective range ≈ rated range × √(target reflectivity / rated reflectivity).
  1. Identify values: rated range = 200 mm; rated reflectivity = 90% = 0.90; target reflectivity = 18% = 0.18.
  2. Calculate the reflectivity ratio: 0.18 / 0.90 = 0.20.
  3. Take the square root of the ratio: √0.20 ≈ 0.447.
  4. Multiply by the rated range: 200 mm × 0.447 ≈ 89 mm.
Answer: Effective sensing range ≈ 89 mm for the matte gray target. Verify by bench measurement and compare with the datasheet; if 89 mm is insufficient for the application, choose through-beam or retro-reflective mode.
3. A PLC input card accepts a PNP (sourcing) 24 VDC signal. A diffuse photoelectric sensor wired to it shows no input state change when a target is placed at the rated sensing distance. Using a multimeter, you measure 0 V on the sensor output terminal with the target present. List the diagnostic steps in order.
  1. Step 1 – Verify power: check that 24 VDC is present between the sensor's brown (+) and blue (–) wires. Measure with multimeter set to DC volts. If missing, check supply and wiring upstream.
  2. Step 2 – Verify output wiring: confirm the black (output) wire is connected to the PLC input terminal, not to the common or power terminal.
  3. Step 3 – Check output type: confirm the sensor is PNP (not NPN). An NPN sensor sinks current and requires a different wiring topology for a PNP input card.
  4. Step 4 – Test output with load: with power applied and target at sensing distance, measure voltage between the black output wire and the blue (–) wire. A working PNP sensor should show near 24 VDC when activated.
  5. Step 5 – Check sensing distance: ensure the target is within the rated range; move it closer and observe indicator LED on sensor body.
  6. Step 6 – If all wiring and power are correct and the sensor LED does not illuminate with target present, the sensor may be defective or misadjusted; consult datasheet for sensitivity adjustment potentiometer.
Answer: Work through power verification, wiring confirmation, output type check, and functional test before concluding the sensor is defective.
4. A packaging line counts small bottle caps passing a through-beam sensor. The line runs at 120 caps per minute and each cap is 25 mm in diameter traveling at a belt speed of 0.5 m/s. Calculate the minimum time the beam is blocked per cap and determine whether a sensor with a 5 ms response time will reliably count every cap.
  1. Calculate the time the beam is blocked: time = diameter / belt speed = 0.025 m / 0.5 m/s = 0.05 s = 50 ms.
  2. The sensor response time is 5 ms. For reliable detection, the object must block the beam for at least twice the response time (one switch-on, one switch-off): 2 × 5 ms = 10 ms minimum.
  3. Compare: beam blocked for 50 ms; minimum required 10 ms. 50 ms >> 10 ms.
  4. Conclusion: the 5 ms response time sensor reliably detects each cap at this belt speed and cap size.
Answer: Each cap blocks the beam for 50 ms; the 5 ms sensor responds in 10 ms total (on + off), so detection is reliable with a comfortable margin.

The math in this lesson2

Learners compute excess gain from rated versus actual range and effective range from target reflectivity.
6.RP.3N-Q.1
Brush up in the math halls at newSchoolWorks.com:
In class: Instructor demo: align a through-beam emitter/receiver pair on a conveyor mock-up; show the effect of misalignment on signal quality using an indicator LED and a PLC input status screen. · Lab rotation: student pairs install and commission one sensor of each mode (through-beam, retro-reflective, diffuse) on the bench conveyor section; record max reliable sensing distance, excess-gain margin, and response time from datasheets. · Application decision worksheet: students analyze five printed packaging-line scenarios (opaque bottles, clear film, shiny lids, bulk grain detection, small part counting) and select and justify the correct photoelectric mode for each.
Materials: Through-beam, retro-reflective, and diffuse photoelectric sensors (Keyence or Banner), corner-cube reflector, bench conveyor section, PLC panel, 24 VDC supply, multimeter, alignment targets, manufacturer datasheets.
Check: Completed installation checklist signed by instructor confirming alignment and wiring; application decision worksheet scored at 80% or better.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Siemens SMSCP Level 1 — Electrical Components and Sensors
1. Which photoelectric mode provides the greatest sensing range and the highest excess gain because the light path travels from emitter to receiver in a straight line without reflecting off the target?
PMMI Mechatronics — Industrial Electricity / Mechanical Components
2. A sensor datasheet curve shows an excess gain of 1.5 at the planned working distance on a line that generates significant airborne dust. What action is most appropriate?
PMMI Mechatronics — Industrial Electricity / Sensors
3. A standard retro-reflective sensor is installed to detect shiny aluminum lids on a conveyor but fails to detect the lids consistently. What is the most likely cause?
FANUC CERT / PMMI Mechatronics — Safety
4. Before wiring a new photoelectric sensor to the bench conveyor panel, a student must verify the 24 VDC supply is de-energized. According to OSHA 29 CFR 1910.147, which step must immediately follow isolating the energy source?
Siemens SMSCP Level 1 — Sensors and Control
5. A diffuse sensor with background suppression (BGS) is preferred over a standard diffuse sensor when:
FANUC CERT — Technician Troubleshooting / PMMI Mechatronics
6. A student measures reliable detection of a through-beam sensor pair at 2.4 m, but the datasheet rates the sensor to 4 m. After checking wiring and power, the most likely next diagnostic step is to:
PMMI Mechatronics — Industrial Electricity / Sensor Selection
7. On a packaging line, clear PET plastic film must be detected as it passes a sensor. Which mode and reasoning is correct?
PMMI Mechatronics — Industrial Electricity / Sensors and Calculations
8. A photoelectric sensor has a rated response time of 2 ms. Parts 15 mm wide pass the sensor at a belt speed of 0.3 m/s. What is the beam-blocked duration, and will the sensor reliably detect each part?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.