The Cylinder, Threaded - M12 package already includes it for your convenience. When the operating temperature is -25°C~70°C TA, proximity sensors will work well.
ICB12S30F02NO Features
ICB Series Operating Temperature: -25°C~70°C TA Sensing Distance: 0.079 (2mm) Voltage - Supply: 10V~36V Response Frequency: 2kHz Package / Case: Cylinder, Threaded - M12 Moisture Sensitivity Level (MSL): Not Applicable
ICB12S30F02NO Applications
There are a lot of Carlo Gavazzi Inc. ICB12S30F02NO Proximity Sensors applications.