How you connected the LED's for a motor sensor test is not perfect. Most sensors work with a transistor switching to the ground and an internal pull up of 10k and some even no internal pull up. I suggest to use a simple buffer like an ULN2003 or something like a 74hc04, 74hc06 or 74hc07 with on the input a pull up in the range of 10k~22k