So the intention for my code is for when the limit switched is pressed, the motor will spin for a set span of time. Because the limit switched will be continuously pressed, I am having a problem where the motor will spin pretty much infinitely. I just need the motor to spin for that set span of time, then stay off until the switch is pressed again. I hope I am conveying this clearly please feel free to let me know if I need to explain anything further. Thank you