After two decades deploying proximity sensors in mining, heavy machinery, and chemical processing, I've learned that the datasheet is merely a polite introduction. The real performance narrative is written by grease, vibration, EMI, and human error. Let's cut to the chase.
Experience Correction: The Myth of "Guaranteed" Detection Range.
The stated detection range (e.g., 15mm for an inductive sensor) assumes a standard target (mild steel, 1mm thick). In reality, everything changes. For a worn hydraulic piston head coated with hardened sludge, the effective range can drop by 40-50%. I've documented cases where a sensor specified for 8mm failed to reliably detect a brass valve stem at just 3mm, necessitating a full re-spec to a capacitive type. The "repeat accuracy" figure is also a clean-room fantasy. Sustained exposure to temperature swings above 80°C, common in engine compartments, can cause drift exceeding the stated accuracy by a factor of two, leading to missed counts or false triggers. Rely on the datasheet for initial selection, then derate aggressively: apply a 30% minimum safety margin to the nominal range for critical applications.
Boundary Conditions: Where Proximity Sensors Become Liabilities.

These are not universal solutions. Their failure modes are specific and dangerous.
1. Conductive Contaminants: Inductive and capacitive sensors are utterly defeated by environments with conductive dust (metal shavings, carbon powder) or persistent conductive fluid films (coolant mist, saline spray). The sensor will either latch on permanently or become desensitized. In a CNC machining cell, metal particulate accumulation caused continuous false "object present" signals, leading to a robotic arm collision. The solution was not a "more robust" sensor, but a complete shift to a physical contact limit switch in that localized zone.
2. High-Speed, Low-Mass Targets: Detecting a thin plastic bottle on a high-speed conveyor is a classic pitfall. A capacitive sensor might seem suitable, but if the product velocity exceeds 3 m/s and the dwell time in the sensing field is less than the sensor's response time, you will get intermittent misses. The data might show a 5ms response, but that's for a full-state change. Reliable detection of small, fast objects often requires a response time 3x faster than the calculated minimum. Ultrasonic or photoelectric sensors with specialized optics are often the correct, though more expensive, answer here.

3. Unshielded Sensors in Dense Metallic Enclosures: Mounting an unshielded inductive sensor flush in a steel bracket seems logical. However, if the surrounding metal is within its nominal sensing field (the "side" or "rear" detection zone), it can cause permanent activation or reduced sensitivity. This is not a malfunction; it's physics. The fix is always a shielded sensor for flush mounting, but the risk lies in field replacements where a non-shielded unit is incorrectly installed, creating an intermittent fault that is notoriously difficult to diagnose.
Counterintuitive Conclusion: A "Failing" Sensor Might Be Working Perfectly.
The most perplexing failures often point to a correct sensor revealing a flawed mechanical process. We once investigated "random failures" of a sensor detecting a metal cam position. Diagnostics showed intermittent signal loss. The instinct was to blame sensor drift or electrical noise. After exhaustive logging, we correlated the "failures" with specific machine cycles. The root cause was not the sensor: it was a worn camshaft bearing, allowing 0.5mm of axial play that occasionally pulled the target outside the effective sensing range. The sensor was faithfully reporting a mechanical defect. Similarly, a capacitive sensor constantly triggering "full" on a plastic hopper wasn't faulty—it was detecting an invisible, persistent static charge buildup on the inner wall. The lesson: Before condemning a sensor, instrument it to log its raw analog output (if available) against the process timeline. The problem it reveals is frequently upstream.

The ultimate insight is this: Proximity sensor reliability is less about the device itself and more about the system-level understanding of its electromagnetic or electrostatic field interaction with a messy, unpredictable world. Specify for the worst-case scenario, not the ideal one, and always interpret its signal as a story about the entire physical environment, not just a binary state.