@fcwilt
Well, i dont know or have enough electronics knowledge to elaborate. It looks like it works, probe lights up and when metallic piece gets close, led turns off. Then testing with multimeter between ground and signal, beeps continuity as with mechanical switch but when connected to duet, it does nothing, except endstop led on duet dims when metallic object is in close proximity. I tried 5V and 12V and its the same(only LED shines brighter) so it shouldn't be lack of voltage.
P.S. I checked again with the multimeter, diode testing mode and with induction probe it reads 010 when its closed and 678 with metalic piece in close proximity while on mechanical switch it reads 001 closed an 1 open.
Resistance when its closed is 13ohm and when open is over 20Mohm