The Cylinder, Threaded - M12 package already includes it for your convenience. When the operating temperature is -40°C~85°C, proximity sensors will work well. Electronic components with pins 4 are available. If you want proximity sensors to perform at their best, you should set their supply voltage to 30V. The electronic components can operate well with a 200mA output range.