I have a robot and lever mechanism. The arm is at 1 end of lever mech and the load cell with Arduino at the other. The robot will move the lever and when a force defined in the Arduino is reached, the output is turned on. the robot needs to keep moving and stop when the output is turned on. I had a program with 2 if statements. 1 if statement was if DI was true and the other was if DI was low. when the the DI goes high i want the robot to stop regardless of where waypoint is.