Today I installed an inductive sensor (4 mm sensing distance, NPN) on my printer to perform auto-bed leveling. The sensor works at 12 V and the board at 5 V, so I used a voltage divider (as suggested in many places online) using a 10kOhm and a 15kOhm resistor.
In testing the sensor, I noticed that the sensor's LED turns on, but the printer (Anet A8) doesn't recognize the fact that the sensor is triggering. I'm running the Skynet3D firmware, though I still have not switched to the version with auto bed-leveling. Regardless, the inductive sensor should still act as a limit switch, yet the Z-Axis motor does not stop when the sensor triggers. Am I doing something wrong, or missing a step?
I have also measured the voltage across the leads that connect to the board and the voltage is slightly over 5 V when the sensor is not triggered, and lowers to around 2.5 V when the sensor triggers. I get the feeling it should be closer to 0 V.
Thank you very much for any help.