Endstops working sometimes

This fixed it for me. I added the 1.5k Resistors to my wiring.