Choosing the correct output mode on a photoelectric sensor is critical to reliable machine operation. A simple configuration choice can affect everything from detection accuracy to system safety. One of the most important — and frequently misunderstood — sensor settings is the difference between Light Operate (LO) and Dark Operate (DO) modes.
These switching modes determine when a photoelectric sensor activates its output based on whether it is receiving light from a target or reflector. Understanding how each mode works is essential for designing dependable automation systems and ensuring equipment responds correctly to changing conditions.
How photoelectric sensors detect objects
All photoelectric sensors operate on the same basic principle. The sensor emits a beam of light and monitors the amount of light that returns. Based on that feedback, it determines if a target is present. When a target is detected, the sensor’s indicator LED illuminates to confirm detection.
While the LED behavior is generally consistent, the signal sent to the PLC or control system depends on whether the sensor is configured for Light Operate or Dark Operate operation.
Light Operate (LO): Output turns ON when a target is present
In Light Operate mode, both the sensor indicator and output activate when a target is detected.*
LO = Output ON / HIGH when a target is detected
This mode is often the easiest to understand. When the sensor identifies a target, it sends an active signal to the controller.
For example, if a sensor is set to Light Operate (sometimes labeled L or Light Switching), placing an object within the sensing area will cause the status LED to light up and the output to switch HIGH, potentially energizing a lamp, relay or alarm device.
Applies to energetic proximity-style photoelectric sensors. Retroreflective sensors operate differently (see below).

With Dark Operate mode, the LED still indicates target detection in the same way. However, the output logic is inverted. When a target is detected, the output turns OFF rather than ON.
DO = Output HIGH when no target is present*
The name comes from the fact that the output remains active when the receiver is “dark,” or not receiving reflected light from a target.
Why engineers often choose dark operate
At first, Dark Operate may seem counterintuitive. However, many machine designers prefer it because it supports more fail-safe system behavior.
Consider an application where a sensor must detect an obstacle and stop machine movement before a collision occurs. In an LO configuration, the controller relies on receiving an active signal before taking action. If power is lost, wiring fails, or the sensor malfunctions, that signal may never be generated—potentially allowing a crash to occur.
With DO logic, the output remains active during normal operation. If an object is detected, a wire breaks, power is removed, or the sensor fails, the output drops out. Because any abnormal condition produces the same response, the controller can place the machine into a safe state.
This fail-safe characteristic is a major reason Dark Operate is commonly used in industrial control systems.
Equivalent concepts in inductive sensors
Inductive proximity sensors use different terminology, but the operating principles are nearly identical:
- Normally Open (NO) = Similar to a Light Operate photoelectric sensor
- Normally Closed (NC) = Similar to a Dark Operate photoelectric sensor
The functionality is essentially the same — the naming convention is simply different.
Important: Retroreflective sensors reverse LO/DO logic
This is a common source of confusion. With proximity and background-suppression photoelectric sensors, detecting light generally means a target is present. Retroreflective sensors work the opposite way because they view light reflected from a separate reflector. When no target is present, light returns from the reflector and reaches the receiver. When a target is present, it blocks the light path, preventing the reflected light from reaching the sensor.
As a result:
- Light Operate → Output ON when no target is present
- Dark Operate → Output ON when a target is present
This behavior is the reverse of what users expect from standard proximity-type photoelectric sensing and is especially important to remember in conveyor, package handling, and object detection applications.
Key takeaway
Light Operate and Dark Operate settings determine when a photoelectric sensor's output changes state relative to target detection. While LO mode provides intuitive “target detected = output ON” behavior, DO mode is often favored in industrial environments because it offers a more fail-safe response to wiring faults, power loss and sensor failures. Understanding these modes — and recognizing that retroreflective sensors reverse the logic — is essential for creating reliable and safe automation systems.


