My sensors have the same wiring and when I hooked mine up in this exact configuration. They would work perfectly as long as I had my E-Stop Switch depressed. But as soon as I enabled my Stepper Motors by turning the E-Stop Button releasing it they would stop functioning. And the worst part was Mach3 Config.txt telling me that everything was fine.