Inductive sensors: Detecting metal objects
An inductive sensor creates an electromagnetic field and detects changes caused by a nearby metal target. It is widely used for metal presence, mechanical position and part counting.
Sensing distance depends on sensor model and target material. Check flush/non-flush mounting, sensor diameter, surrounding metal and installation clearance in the datasheet.
Capacitive sensors: Non-metallic materials and level
A capacitive sensor detects changes in the electric capacitance around its sensing face. It can detect certain non-metallic materials as well as metal, including plastics, glass, powders and liquids.
Sensitivity depends on material, distance, moisture, contamination and adjustment. Test the actual product and environment in level or package-detection applications to avoid false triggering.
Photoelectric sensors: Detection using light
Photoelectric sensors use a light emitter and receiver and are available as retro-reflective, through-beam and diffuse types. In through-beam systems the target interrupts the beam; diffuse types detect light reflected from the target.
Target color, gloss, transparency, alignment, dust, ambient light and distance affect performance. Transparent or reflective objects may require a specialized sensor.
Selection and installation
Define target material and dimensions, speed, spacing, sensing distance, temperature, vibration, moisture and contamination. Match sensor output, PNP/NPN wiring, supply voltage and output current to the PLC input.
During commissioning, observe the sensor LED and PLC input bit together. If the sensor switches but the PLC does not see it, check wiring, supply common, input type and polarity.
Selecting mounting position and sensing distance
Sensor type is only one selection factor. Consider target material and size, speed, sensing distance, ambient temperature, humidity, dust, vibration and possible background objects. Inductive sensors detect metal, capacitive sensors cover a wider range of materials and photoelectric sensors use light, but every family has model-specific limits.
Do not assume nominal sensing distance equals the practical mounting distance. Target shape, material, correction factor, flush or non-flush mounting and safety margin must be checked against the datasheet. Test the sensor on the actual machine and confirm the target enters the sensing zone without false triggering from the frame or background.
Key takeaways
- Inductive sensors target metal, capacitive sensors cover a wider range of materials, and photoelectric sensors use light.
- Target material, rated distance and environmental conditions determine suitability.
- Verify PNP/NPN output and PLC input compatibility before wiring.
Need help applying this in a real project?
Explore Elecnic engineering services for Siemens PLC programming and troubleshooting, HMI/SCADA implementation, SINAMICS drive integration and commissioning support.
References and further reading
This is an original Elecnic article based on the technical references below. Always verify model-, firmware- and software-version-specific details in the official documentation for your equipment.

