A photoelectric sensor is a non-contact device that detects the presence, absence or position of an object by emitting a light beam and evaluating the light that reaches its receiver. Among the sensors used in robotics and automated handling, it is one of the most common ways to confirm that a part has arrived, that a gripper holds a workpiece or that a robot cell is clear.
The sensor converts a change in received light intensity into a discrete switching output, so it answers a yes-or-no question quickly and reliably. Ranges reach from a few millimeters to more than 50 meters, depending on the sensing mode and the target.
How a photoelectric sensor detects objects
A photoelectric sensor detects objects by comparing the light arriving at a photodetector with a switching threshold. An emitter, usually an LED with red, infrared or blue light, or a laser diode, sends a beam toward the sensing area. A receiver with a photodiode or phototransistor measures how much light returns, and an evaluation circuit switches the output when the level crosses the threshold.
Most industrial sensors modulate the emitted light, pulsing it at a fixed frequency. The receiver responds only to light with that pattern, which gives strong immunity to ambient light from lamps, windows or welding. A hysteresis band between the switch-on and switch-off levels prevents chatter when a target sits near the threshold.
The table below summarizes the functional blocks inside a typical sensor.
| Block | Role | Typical implementation |
|---|---|---|
| Emitter | Produces the sensing beam | Red LED, infrared LED or laser diode |
| Optics | Shape and focus the beam | Lenses, apertures, polarizing filters |
| Receiver | Converts light into current | Photodiode or phototransistor |
| Evaluation circuit | Demodulates and compares with threshold | Microcontroller or analog comparator |
| Output stage | Signals the controller | PNP, NPN, relay or IO-Link |
Sensing modes and their ranges
Photoelectric sensors are classified mainly by sensing mode, which describes where the emitter, receiver and target sit relative to each other. The mode sets the achievable range, the reliability on difficult surfaces and the wiring effort.
| Sensing mode | Principle | Typical range | Main strength |
|---|---|---|---|
| Through-beam | Separate emitter and receiver face each other | Up to about 50 m or more | Highest reliability and excess gain |
| Retroreflective | Beam returns from a reflector | Up to about 15 m | One housing to wire |
| Polarized retroreflective | Polarizing filters reject shiny targets | Up to about 10 m | Works with glossy objects |
| Diffuse | Target itself reflects the light | About 10 mm to 2 m | No reflector needed |
| Background suppression | Triangulation sets a fixed sensing distance | About 20 mm to 2 m | Ignores objects behind the target |
A key quantity across all modes is excess gain, the ratio of received light to the minimum light needed for switching. An excess gain of at least 2 to 3 in clean conditions and 10 or more in dusty or wet environments keeps the sensor reliable as lenses become dirty.
Photoelectric sensors among related robot sensors
A photoelectric sensor belongs to a family of non-contact presence sensors, and choosing among them depends on target material, distance and environment. The comparison below places it next to its closest neighbors in a robot cell.
| Sensor type | Detected property | Typical range | Key limitation |
|---|---|---|---|
| Photoelectric sensor | Light interruption or reflection | Millimeters to tens of meters | Sensitive to dirt and transparency |
| Inductive sensor | Metal in a magnetic field | About 1 to 40 mm | Detects metals only |
| Capacitive sensor | Change in dielectric field | About 1 to 30 mm | Affected by humidity |
| Ultrasonic sensor | Echo of sound pulses | About 30 mm to 8 m | Slower, soft materials absorb sound |
| Time-of-flight sensor | Travel time of light | Centimeters to tens of meters | Higher cost, gives distance |
The photoelectric principle offers the longest range among simple switching sensors and works on almost any opaque material. A LiDAR or depth camera uses related optics but produces distance data or point clouds rather than a single switching signal.
Applying photoelectric sensors in robot cells
In robotics, photoelectric sensors usually provide binary confirmations that tell the controller when to start or stop a motion. Typical tasks include detecting parts on a conveyor before a pick, verifying that a gripper is loaded, counting products and confirming that a fixture is empty.
Response time is a decisive parameter in these applications. Standard sensors switch in about 0.25 to 1 ms, and high-speed models reach tens of microseconds. With a conveyor moving at 1 m/s, a 1 ms response produces a position uncertainty of about 1 mm, which matters for synchronized picking.
| Task | Recommended mode | Reason |
|---|---|---|
| Detecting boxes on a conveyor | Retroreflective | Long range, simple wiring |
| Checking a part in a gripper | Background suppression | Ignores the cell structure behind |
| Detecting clear bottles | Clear-object retroreflective | Detects small intensity drops |
| Shiny metal parts | Polarized retroreflective | Rejects false reflections |
| Dusty palletizing area | Through-beam | Highest excess gain |
Modern sensors increasingly use IO-Link, a point-to-point communication standard that transmits the switching state together with signal strength, contamination warnings and remote configuration. This supports predictive maintenance, since the controller can see excess gain falling long before the sensor fails.
Limitations, safety and common mistakes
A standard photoelectric sensor is not a safety device. Protecting people around a robot requires safety light curtains or safety laser scanners certified under IEC 61496 and integrated according to ISO 13849 or IEC 62061, with redundant channels and self-testing. Using an ordinary sensor for personnel protection is a serious design error.
- Ignoring target color and gloss in diffuse mode, which shifts the effective range for dark or shiny parts.
- Missing transparent objects, because glass and film pass most of the light.
- Mutual interference between adjacent sensors facing each other without frequency separation.
- Setting the threshold with no margin, so dust or condensation causes false switching within weeks.
Stripped to the essentials
A photoelectric sensor works like an electric eye. It shines a small beam of light and watches whether the light comes back or gets blocked.
When something passes through the beam or reflects it, the sensor flips a signal from off to on. A robot uses that signal to know that a part has arrived or that its gripper is holding something, without ever touching the object.
Where it is applied
A food packaging line uses a collaborative robot to place cartons into shipping cases. A retroreflective photoelectric sensor mounted 1.2 m across the conveyor detects each carton, and a background suppression sensor in the gripper confirms that the carton is held before the robot moves.
The conveyor runs at 0.5 m/s and the sensors respond within 0.5 ms, so the robot receives a trigger accurate to about 0.25 mm of carton travel. Through IO-Link, the controller reports when the excess gain of the conveyor sensor drops below 3 because of flour dust, and maintenance cleans the reflector during a planned stop. The cell runs with no missed picks over a full shift.