The Cylinder, Threaded - M8 package already includes it for your convenience. When the operating temperature is -25°C~70°C, proximity sensors will work well. Electronic components with pins 3 are available. If you want proximity sensors to perform at their best, you should set their supply voltage to 30V. To ensure that the proximity sensors are functioning properly, the rate should be set to 1kHz. To make proximity sensors work properly, the reed switch's internal contacts should be conducting 200mA current. In DC circuits, proximity sensors can receive a voltage up to 30V without being damaged. DC proximity sensors should not have currents lower than 10V, or they could damage the circuit. Set this electronic part's current to 200mA to maximize efficiency. You need to set the frequency of the proximity sensor to 1kHz if you want it to work.