Proximity, Photoelectric or Fiber? Choosing a Sensor by Target and Environment
Sensor selection usually starts from detection distance. It should start from what the target is made of and what is floating in the air around it.
Inductive (proximity) sensors detect metal only, with no moving parts and total immunity to dust, oil mist and ambient light. Their published sensing distance is measured on mild steel; on stainless steel expect about 70 percent of it, on aluminium or copper about 40 percent. If you are detecting aluminium, either buy a "all-metal" variant or mount it closer than the datasheet suggests.
Photoelectric sensors detect anything that interrupts or reflects light. That makes them versatile and fragile at the same time: dust film on the lens, coolant mist, and direct sunlight all degrade performance gradually, so the failure looks like an intermittent false trigger rather than a dead sensor.
Diffuse photoelectric sensors rely on reflection from the target, so target colour and finish change the sensing distance. Retro-reflective types use a reflector and are far more stable on varying targets. Through-beam types are the most reliable of the three but need mounting on both sides.
Fiber optic sensors separate the amplifier from the sensing head. The head is tiny, which solves mounting problems in tight fixtures, and it survives heat and vibration that would kill an integrated sensor. The amplifier sits in the cabinet where it is accessible. The cost is a fiber cable that is easy to kink — route it with a minimum bend radius.
The practical ranking for a workshop: metal target, dust or coolant present — inductive. Non-metal target, clean environment — photoelectric. Confined space or high temperature — fiber. High-speed counting — photoelectric or fiber, because inductive response is slower.
One last check that catches a lot of installations: output type. PNP sources current to the PLC input; NPN sinks it. Wiring an NPN sensor to a PNP-configured input gives you an input that never turns on, which reads as a dead sensor and gets replaced unnecessarily.