Z probe heeeeeelp

So going crazy cant get the z probe to work right it says it is always pluged in it still works when i plug it in but does not see when i unplug it i have tried to replace the plug in but same result anyone know how this thing works is it just a simple open closed terminal or am i missing something