After two decades on factory floors, from automotive paint shops to offshore drilling rigs, I can state unequivocally: the data sheet is a starting point, not a gospel. The real selection criteria are written in grease, vibration, and unforeseen failure. Let's cut through the marketing.
Experience Corrections: The Reality Gap
The advertised sensing distance for inductive and capacitive sensors is a laboratory figure. In practice, it's a variable. For inductive sensors targeting steel, reduce the nominal sensing distance (Sn) by at least 10% for reliable operation. For stainless steel (austenitic grades like 304/316), derate by 30-40%. For aluminum, expect 50-60% reduction. This isn't a minor footnote; it's the first rule of machine design. Temperature is another silent killer. A sensor rated for 70°C will see its electronics lifespan halved for every 10°C rise above 50°C ambient. If your control cabinet is at 45°C and the sensor is mounted on a motor housing reaching 80°C, forget the 70°C rating—you're in failure territory. Vibration resistance ratings (like 10-55 Hz) assume sinusoidal patterns. The random, high-impact shocks from a stamping press or a forging hammer will fatigue internal solder joints long before the housing fails. I've seen M12 connectors shear off from resonant vibration that spec sheets never model.
Boundary Conditions: Where It All Falls Apart

Know the failure zones. Here’s where common types break:
Inductive (Metal Detection): Utterly useless in environments with conductive dust (e.g., graphite, metal powder from machining). The dust forms a conductive bridge, causing permanent "target present" signals or internal short circuits. Also, avoid them near high-frequency welding equipment (>10kHz); the electromagnetic interference can mimic target signals.
Capacitive (Liquid/Powder Level): A nightmare in applications with adhering media. A sensor detecting powdered milk or starch will fail after the first cycle; material coats the face, changing the dielectric constant and locking the output ON. In liquids with high viscosity or a tendency to polymerize (like certain resins or syrups), they become maintenance liabilities. Changes in material batch composition (e.g., moisture content in grain) also render calibration useless.

Ultrasonic: The most misunderstood. They fail spectacularly in the following conditions: 1) Vacuum or rapidly changing pressure environments (sound waves need a medium), 2) Environments with heavy airborne dust or steam (attenuation and false echoes), 3) Surfaces that are soft, porous, or angled more than 3 degrees from perpendicular (sound absorbs or deflects). Do not use them on foam, felt, or fluffy textiles.
Magnetic (Reed/ Hall Effect): The assumption of a "clean" magnetic field is fatal. Any presence of stray DC fields (from large busbars, DC motors) will shift the switch point or latch it permanently. In mobile hydraulic applications, solenoid valves can generate enough field to trigger a nearby sensor unexpectedly.
Counter-Intuitive Conclusions: Data-Driven Heresies
1. Sometimes, Less Sensitivity is More. In capacitive sensing for bulk solids, a sensor with a lower nominal sensitivity and a physically smaller active face often outperforms a "high-performance" one. It's less susceptible to material buildup on the chamber walls and provides a sharper, more repeatable switching point for materials like plastic pellets or grains. The industry's push for longer ranges creates noise and instability problems nobody discusses.
2. The "Rugged" IP69K Housing Can Be the Weakest Link. An IP69K-rated stainless steel housing is excellent for washdown. However, in chemical atmospheres (chlorides in coastal plants, acids in plating shops), that same housing becomes a liability if it's not the correct grade (e.g., 316L vs. 304). Galvanic corrosion between the housing and a brass connector or carbon steel bracket will destroy the sensor faster than any ingress. The sealing is perfect, but it traps corrosive electrolytes inside, accelerating failure.
3. The Most Critical Parameter is Often Not Listed: Recovery Time. After detecting a target, how long before the sensor is ready to detect again? For high-speed sorting (e.g., 1000+ items/minute), a sensor with a 2ms response time but a 15ms recovery time will miss every other object. Data sheets tout response time; recovery time is buried, if listed at all. In dynamic sensing, the duty cycle is everything.
4. Redundancy Can Increase Failure Rate. Installing two identical sensors for redundancy in the same harsh location