In this type of sensor 3 cables arrive, an orange and must have 8 volts with the switch on, another is black with blue and is earth, the other is a gray with black and must have 5 volts disconnected from the sensor. When connecting and approaching and removing it from something metàlico from the bottom, the output voltage of 5 to zero volts must vary, but usually the connector of that sensor fails a lot. I hope you help you, bye.