Explained: How Photoelectric Sensors Reject Light

Photoelectric sensors reject unwanted light using optical filters, narrow beam geometry, and timing circuits. These methods block ambient light and reflections from other sensors, keeping industrial object detection stable in bright or crowded environments.
- Light rejection is a combination of hardware and signal processing, not a single feature.
- Narrow beams and diffused beams handle different interference patterns differently.
- Timing-based rejection protects sensors from fast-moving ambient light sources.
- Mounting angle and lens selection directly affect how much stray light enters the sensor.
- Testing in the actual environment is required to confirm rejection performance.
Photoelectric sensors reject light by controlling what reaches the photodetector. This control happens at the optical level, the circuit level, and the signal processing level. A sensor that cannot reject stray light will register false triggers, miss objects, or behave inconsistently.
What Is Light Rejection in This Context
Light rejection means the sensor ignores light that is not part of its intended signal. The intended signal is a narrow beam of infrared light, usually at a wavelength such as 850 nanometers or 940 nanometers. The sensor emits this light and measures how much returns to the receiver.
Ambient light, sunlight, factory lamps, and light from neighboring sensors all compete with the intended signal. If the receiver sees too much outside light, it cannot distinguish a weak return signal from noise. The result is unstable output, random switching, or missed detection.
The term sensor interference covers both external light sources and light from other photoelectric sensors. A single sensor may work well in isolation but fail when two or three units are mounted nearby.
How the Optical Path Rejects Stray Light
The first line of defense is the lens or filter on the emitter and receiver. These components pass only a narrow slice of the spectrum. For example, a receiver filter may allow 850 nanometer light through while blocking visible red light and most infrared heat radiation.
The beam geometry matters. A focused beam creates a narrow path. This reduces the area where outside light can enter. A diffuse beam spreads light over a wider area. It is better for detecting small objects, but it is more exposed to ambient light because the receiver sees a broader region.
The receiver often uses a slit or aperture. This limits the angle from which light can enter. If light enters at a steep angle, it is blocked. This angular rejection helps when a sensor is mounted near a bright lamp or a reflective surface.
How the Signal Timing Rejects Light
Many photoelectric sensors use a modulated signal. The emitter does not shine continuously. It pulses the light at a high frequency. The receiver is tuned to detect only that specific pulse pattern.
This timing method is effective against constant light sources like incandescent lamps or daylight. The receiver ignores steady light because it does not match the pulse pattern. If a motor or lamp flickers, it may create a pulse pattern that overlaps with the sensor. This is where sensor interference becomes a real problem.
The pulse frequency is usually in the tens of kilohertz range. It is high enough to reject most ambient light but low enough to keep the electronics simple and inexpensive. The receiver compares the incoming signal to the expected pattern. If the pattern matches, the sensor registers the return. If it does not, the light is ignored.
How the Circuitry Rejects Light
The photodetector produces a current that changes with light intensity. A comparator circuit turns this current into a digital signal. The threshold setting determines the switching point. If the return light drops below the threshold, the output changes state.
In a reflector type sensor, the emitter and receiver are in the same housing. The light hits the object and reflects back. The return signal is weak. The receiver must be sensitive enough to detect it while still rejecting ambient light. This is why reflector sensors are more vulnerable to interference than through-beam sensors.
In a through-beam sensor, the emitter and receiver are separate. The object blocks the beam. The return signal is strong when the path is clear. This design has a higher signal-to-noise ratio. It is less affected by ambient light because the receiver is looking for the presence of a strong beam, not a weak reflection.
The circuitry can also include a baseline adjustment. This allows the operator to set the reference level under normal conditions. The sensor then looks for changes relative to that baseline. This helps when the environment is not perfectly constant.
How Mounting and Environment Affect Rejection
Mounting angle changes the optical path. If the receiver is pointed at a reflective surface, light bounces into the sensor. This creates a false return. The sensor may think an object is present when nothing is there.
A common setup is a through-beam pair mounted across a conveyor. The emitter and receiver are on opposite sides. The object passes between them. The beam is blocked. The sensor triggers.
A reflector sensor is often mounted on a bracket at an angle. The light hits the side of a part and returns to the receiver. The angle of incidence matters. A steeper angle may reduce the return signal. A shallower angle may increase it. The operator must tune the sensor to the specific object and surface.
Nearby photoelectric sensors can cause sensor interference if their beams overlap. Two through-beam sensors on the same line may see each other’s light if they are too close or pointed at the wrong angle. This is a common source of false positives.
How to Choose a Sensor for a Noisy Environment
The choice depends on the type of interference and the required detection range. A through-beam sensor is best when the object can be placed in a clear path. It has the highest rejection capability.
A diffuse reflector sensor is best when the object is small or irregular. It has a shorter range but higher sensitivity. It needs careful tuning to avoid ambient light.
A focused reflector sensor sits between the two. It has a longer range than a diffuse sensor and better rejection than a through-beam setup in some cases. It is useful when the object is farther away but the path is not completely clear.
The table below summarizes the trade-offs.
| Sensor Type | Detection Range | Light Rejection | Typical Use |
|---|---|---|---|
| Through-beam | Longest | Highest | Conveyors, gates, safety edges |
| Focused reflector | Medium | High | Part counting, level sensing |
| Diffuse reflector | Shortest | Lowest | Small parts, irregular shapes |
| Retroreflective | Medium | High | Fixed targets, long range |
The selection process starts with the environment. If sunlight enters the area, use a sensor with strong timing rejection and a narrow beam. If the area has many lamps, check the pulse frequency and ensure it does not match the lamp flicker.
How to Test Light Rejection
Test the sensor in the actual environment before finalizing the design. Turn on all lights. Run the machinery. Watch the sensor output for a long period.
Use a multimeter to check the output voltage. A stable signal should not drift. If it drifts, adjust the threshold or change the mounting angle.
Place a reflective card near the sensor to simulate a false reflection. The sensor should not trigger. If it does, the rejection is insufficient. Move the sensor or add a baffle.
A baffle is a physical shield that blocks light from entering the receiver from a specific direction. It is a simple but effective tool. It does not affect the intended beam if designed correctly.
One worked example: A packaging line has a photoelectric sensor above a conveyor. The line uses bright LED lights. The sensor is a diffuse reflector type. It triggers randomly when the lights are on. The engineer changes the sensor to a through-beam type. The emitter is mounted on one side of the conveyor and the receiver on the other. The LED lights are now outside the beam path. The sensor output becomes stable. The random triggers stop. The change was not a software fix. It was a change in the optical path and the beam geometry.
How to Reduce Sensor Interference in Arrays
When multiple sensors are in one area, interference is likely. The beams may cross. The receivers may see the light from other emitters.
Keep beams parallel where possible. If they must cross, angle them so the crossing point is outside the receiver field of view. Use baffles to block light from one sensor to another.
Check the pulse frequencies. If two sensors use the same frequency, they may interfere. Changing the frequency on one sensor can resolve the issue. Some sensors allow frequency selection. Others are fixed.
The troubleshooting approach is systematic. Isolate each sensor. Turn off the others. See if the problem remains. If it does, the issue is ambient light. If it goes away, the issue is sensor-to-sensor interference.
How Light Rejection Relates to Safety Applications
Safety photoelectric sensors have stricter requirements. They must not miss an object. They must not trigger falsely. Light rejection is part of the safety logic.
A safety sensor may use a modulated beam with a specific frequency. It may have a second channel to verify the first. If one channel sees light and the other does not, the system is in a fault state. This redundancy helps reject interference.
The mounting height and angle are critical. A safety sensor must detect a person or object at the required height. The beam must not be blocked by reflective surfaces. The receiver must not see light from the emitter of a neighboring safety sensor.
The documentation for safety sensors specifies the required rejection level. The user must follow the installation manual. Deviating from the manual can void the safety certification.
Light rejection is not a single feature you can turn on or off. It is a design property. It comes from the beam width, the filter, the timing, the circuitry, and the mounting. When these elements work together, the sensor rejects unwanted light and detects the object. When one element fails, the sensor fails.
The key is to match the sensor type to the environment. A through-beam sensor in a bright area with a clear path will reject light better than a diffuse sensor in the same area. A diffuse sensor in a dark area with small parts will work better than a through-beam sensor that cannot reach the object.
The operator must verify the setup. The documentation must be kept. The environment may change. Lights may be added. New machinery may be installed. The sensor must be re-tested after any change.
Light rejection is the foundation of reliable photoelectric sensing. Without it, the sensor is just a light meter. With it, the sensor is a reliable detection device.
Frequently asked questions
Can a photoelectric sensor reject all light?
No sensor rejects all light. It rejects light that is outside its intended signal path and pattern. Some stray light always enters, and the circuitry must be designed to ignore it.
What is the difference between optical rejection and timing rejection?
Optical rejection uses filters and beam geometry to block unwanted light physically. Timing rejection uses pulse patterns to ignore light that does not match the expected signal.
Why do through-beam sensors have better rejection than diffuse sensors?
Through-beam sensors detect a strong beam. The signal-to-noise ratio is higher. Diffuse sensors detect a weak reflection. The return signal is closer to the noise floor.
How does ambient light affect a reflector sensor?
Ambient light adds to the baseline. If the ambient light is strong, the return signal from the object may be too weak to trigger the sensor. The sensor may miss the object.
Can I reduce interference by changing the mounting angle?
Yes. Changing the angle can move the beam away from reflective surfaces or other sensors. It can also change the return signal from the target object. The angle must be tuned to the application.


