Even without the debug, it would still drop to 7 or 4. While I do think that ultrasonic command isn't getting enough time to adjust the variable is true. But when I get rid of the do while loop the in start3, the code will work fine. Don't know why.
start3: ;Label, state the start of a...