The installer can normally see the spot at short working distances.
xsz sensor optical selection guide
Red Light vs Infrared Photoelectric Sensors
Visible red light makes alignment easier. Infrared light can offer a useful target or environmental advantage in some sensor designs. Neither wavelength is automatically longer-range, more accurate, or better for every object. Choose the sensing mode first, then prove the exact sensor on the real target.
Application image: xsz sensor photoelectric sensing support.
Alignment depends on indicators, signal level, teach feedback, or a test target.
Through-beam, retro-reflective, diffuse, and background suppression solve different jobs.
Short answer
Use wavelength as one decision factor, not the whole decision.
A red or infrared label tells you the emitted light. It does not define the sensing distance, spot size, target-color error, response time, or operating margin.
It is a strong starting point for general machinery, reflector alignment, gap checks, and applications where technicians need to confirm exactly where the sensor is aimed.
Infrared may reduce color dependence over much of the sensing range in some designs, but invisible alignment and real-part validation become more important.
Check the sensing mode, reference target, real material and finish, working distance, background, ambient light, contamination, spot size, speed, and stability indication before approving a model.
Side-by-side decision
What actually changes between red light and infrared?
Industrial red LEDs are often specified around 630 to 670 nm, while near-infrared examples commonly appear around 850 to 950 nm. These are common product examples, not universal ranges. The exact wavelength and performance conditions must come from the selected data sheet.
| Decision factor | Visible red LED | Infrared LED | What the buyer should verify |
|---|---|---|---|
| Beam visibility | The spot can normally be seen at short ranges, which helps alignment. | The beam is normally invisible to the human eye. | Stability indicator, signal display, teach feedback, or IO-Link data. |
| Target color response | Can become color-dependent, especially in diffuse sensing. | Can be less color-dependent over much of the range in some designs. | Actual pigment, gloss, print, angle, contamination, and target curves. |
| Range | Can be long in a suitable optical system. | Can also be long, but IR does not guarantee longer reach. | Sensing mode, reference target or reflector, beam geometry, and reserve. |
| Commissioning | The visible spot helps locate the beam on a target, gap, or reflector. | The technician must align from receiver feedback rather than sight. | Indicator access and whether the beam path remains reachable after guarding. |
| Dust, mist, or steam | Performance depends on the complete optical design and contamination level. | Some manufacturer guidance recommends IR as a useful starting point. | Operating reserve, lens maintenance, real atmosphere, and worst-case trial. |
| Best starting point | General machines where visible setup reduces installation errors. | Applications where the exact IR model proves a target or environment benefit. | A side-by-side test using production parts, not a wavelength-only rule. |
How photoelectric sensing works
Wavelength enters a complete optical chain.
A photoelectric sensor does not make a decision from emitter color alone. It sends modulated light through an optical path, receives a changed signal, and compares that signal with an internal threshold. Omron notes that pulse-modulated light helps the receiver separate its own emitter pattern from external light.[2]
Lens design shapes the beam and spot; wavelength and spot size are separate specifications.
Dust, mist, steam, a dirty lens, and ambient light can reduce usable signal.
Material, pigment, finish, angle, transparency, and wavelength all affect the result.
Filtering, sensitivity, optical geometry, threshold, and hysteresis determine the final output.
Target response
“Black,” “red,” “metal,” or “clear” is not a complete optical description.
Diffuse sensing relies on useful light returning from the target. The return changes with wavelength, pigment, surface texture, gloss, angle, curvature, background, and contamination. A range measured on a white reference card can overstate the usable distance on a dark production part.
- Deep-black plastic: low return can remove operating margin. Compare the exact model on the darkest real part.
- Colored or printed targets: pigments and artwork can absorb red and infrared differently. Qualify every approved color or print family.
- Shiny metal: specular reflection may miss the receiver or create an unwanted return. Geometry and polarization can matter more than wavelength.
- Transparent film, bottles, or glass: much of the beam may pass through. Use a transparent-object-rated solution.
- Small or narrow parts: the object may not fill the effective beam. Check photoelectric sensor beam spot size at the real distance.
Architecture before wavelength
The sensing mode often matters more than red versus infrared.
Start with the event the machine must detect. A through-beam receiver looks for beam loss; a diffuse receiver depends on light returning from the target. Those are fundamentally different signal conditions. Review the full comparison of through-beam, retro-reflective, and diffuse sensors before choosing a light source.
Target interrupts a separate emitter-receiver path
Usually less dependent on diffuse target reflectance. Red helps mechanical alignment; IR needs receiver feedback. Check effective beam size, minimum object, alignment tolerance, and speed.
Best first question: Can hardware be installed on both sides?Target blocks light returning from a reflector
Visible red makes reflector centering easy. Infrared alignment relies on LEDs or a display. For shiny parts, polarization and reflector choice can be more decisive than wavelength.
Best first question: Will the target imitate the reflector?Target itself returns light to the receiver
Wavelength-dependent reflectance has strong influence. A visible spot helps aim the sensor, while an IR model may reduce color sensitivity in some applications. Test all finishes and colors.
Best first question: How much signal returns from the worst part?Optical geometry rejects a farther background
The device adds distance logic, but black-white error, target angle, spot size, and set range still matter. Red or IR performance is model-specific.
Best first question: Can the background enter the sensing zone?Application route
Use the problem to decide what deserves priority.
This matrix is a planning aid, not a substitute for a data sheet or application trial. It helps identify whether visible setup, IR performance, or another sensing architecture should lead the evaluation.
A visible spot helps operators repeat the setup and identify accidental bracket movement.
Use a clear signal display, teach method, or documented alignment target.
Test the darkest color and printed graphics at the longest distance and dirtiest lens condition.
Compare whether the candidate produces more consistent signal across the approved color range.
Do not reject it by name. Measure reserve and contamination tolerance for the exact model.
Some IR designs are recommended for dirty environments, but the real atmosphere must still be tested.[1]
Seeing the optical path can expose an incorrect reflector or target angle.
Prioritize polarization, transparent-object optics, background suppression, or a different principle.
But a standard red LED spot can still be too large for the object.
Check focused optics, slot, fiber optic, or laser alternatives and the minimum detectable object.
Selection and validation
A six-step workflow for choosing red or infrared.
- Define the detection event.Presence, count, edge, position, gap, transparent object, mark, or distance require different architectures.
- Choose the sensing mode first.Compare through-beam, retro-reflective, diffuse, background suppression, contrast, fiber optic, slot, and laser options.
- Describe the worst target.Record the smallest size, darkest color, highest gloss, lowest reflectance, transparency, contamination, and position tolerance.
- Compare complete data sheets.Check range conditions, spot size, minimum object, response time, ambient-light rating, black-white behavior, output, and diagnostics.
- Run a production-equivalent trial.Test real parts, longest distance, lateral offset, background, direct lighting, dirty optics, speed, and the actual bracket.
- Document the release setup.Record switch and reset points, stability indication, teach method, approved target range, and maintenance checks.
Avoid wavelength shortcuts
Three claims that create weak sensor specifications.
Catalog labels are useful for narrowing candidates, but they do not replace the complete optical design or a real application test.
“Infrared always senses farther.”
Range also depends on emitter power, receiver sensitivity, lens design, beam divergence, sensing mode, reference target, and required reserve. Compare the exact operating range under the exact test condition.
“Infrared ignores all colors.”
IR may reduce color dependence in some designs, but material, pigment, finish, angle, and contamination can still change the received signal. Test the full approved target set.
“Infrared is immune to sunlight.”
Modulation and receiver filtering are central to ambient-light behavior. Direct sun and glare can still reduce margin. Check the stated rating and test the actual light path.
Fault diagnosis
Is wavelength really causing the problem?
Before changing from red to infrared or back again, separate an optical-margin problem from alignment, geometry, contamination, or controller integration.
For bright openings and outdoor-adjacent machines, review how sunlight affects photoelectric sensors. For dark parts, compare dedicated black-object detection options.
Use receiver signal or stability feedback to confirm alignment. Compare a white reference target with the real part, clean the optics, and reduce the distance. The invisible beam may be misaligned rather than underpowered.
The diffuse return may have little margin. Test all colors and finishes at production distance. Compare IR only after checking whether through-beam or background suppression creates a stronger signal.
Change the target angle temporarily. If the state changes, glare geometry is involved. Evaluate polarized retro-reflective optics, background suppression, or another mounting angle.
Test at the worst sun angle and time. Shield the receiver path, move reflective surfaces, check ambient-light limits, and restore operating reserve.
General photoelectric sensing may not be suitable. Test empty and full bottles, wall thickness, labels, gaps, speed, and reflector condition with a transparent-object-rated sensor.
A better RFQ
Do not ask only for “a red sensor” or “an IR sensor.”
A useful recommendation needs the actual detection problem. Send the following information so wavelength, sensing mode, usable margin, and electrical integration can be evaluated together.
What must be detected?
Presence, count, edge, position, mark, transparent object, gap, or distance.
What is the worst part?
Material, size, colors, finish, print, transparency, contamination, and photos.
How will the light travel?
Working distance, angle, background, motion, speed, and available mounting space.
What can reduce signal?
Sunlight, process lighting, dust, mist, steam, washdown, oil, temperature, and vibration.
How must it connect?
Voltage, PNP/NPN, Light-ON/Dark-ON, response time, cable or connector, and diagnostics.
How will success be proven?
Worst samples, switch/reset limits, trial duration, margin indication, and maintenance interval.
Continue the decision
Related photoelectric sensor guides
Use these guides when sensing mode, beam geometry, dark targets, or ambient light becomes more important than wavelength alone.
Frequently asked questions
Red light vs infrared photoelectric sensor FAQ
Are infrared photoelectric sensors better than red-light sensors?
Not universally. Infrared can offer a useful target-color or environmental advantage in a particular design, while visible red makes alignment and spot verification easier. The better option depends on sensing mode, target surface, range, background, lighting, contamination, and the exact model specifications.
Can you see the beam from an infrared photoelectric sensor?
Usually no. Near-infrared emitters are outside normal human vision. Align the sensor using its output, received-light or stability indicator, display, teach feedback, or IO-Link data. Do not judge an IR sensor by whether a visible spot appears.
Is a red LED photoelectric sensor the same as a red laser sensor?
No. Both may emit visible red light, but LED and laser emitters can have very different spot sizes, beam divergence, range, precision, classifications, and cost. Read the data sheet for emitter type, spot size, wavelength, and laser class where applicable.
Which is better for black objects: red or infrared?
Neither is automatically best. Dark targets often return little light to a diffuse receiver, and performance changes with pigment, texture, angle, and distance. Test the darkest real part and compare through-beam, background-suppression, focused, or other options before relying on wavelength alone.
Does infrared work better in dust, mist, or steam?
Some manufacturer guidance identifies infrared as a useful choice for dirty environments. However, dust, mist, steam, and lens contamination can reduce any optical signal. Check the model's operating reserve, diagnostics, stated conditions, and real trial performance.
Does a visible red spot guarantee the switching point?
No. The spot is an alignment aid. Actual switching depends on spot diameter at distance, sensing principle, threshold or teach setting, target reflectance, target size, approach path, and background. Confirm the real switching zone with the production target.
Can red or infrared sensors detect transparent plastic?
They can when the sensor is designed for transparent-object detection. A general sensor may be unreliable because much of the light passes through the part. Test the actual plastic grade, wall thickness, shape, label, fill state, distance, reflector, and line speed.
Technical sources
- ifm, Photoelectric Sensors Technology Overview - visible-red setup, infrared application guidance, sensing modes, and modulation.
- Omron, Photoelectric Sensors Technical Guide - pulse-modulated light, wavelength context, and optical sensing principles.
- Omron, E3Z Compact Photoelectric Sensor Specifications - examples of model-specific red and infrared wavelengths and conditions.
- Keyence, Photoelectric Sensor Detection Methods - through-beam, retro-reflective, diffuse, focused, and fixed-distance principles.
- SICK, Retro-Reflective Sensor Operating Instructions - visible-red alignment and infrared alignment by indicators.
Choose from the real application
Let the target, optical path, and required margin choose the sensor.
Send xsz sensor the target photos, material and color range, working distance, background, speed, lighting, contamination, mounting sketch, output requirement, and acceptance method. We can compare red, infrared, and alternative sensing modes against the same application conditions.