So basically use the serial monitor as a debugger. Add print statements to show you every value of every variable whenever they change. You should be able to find the problem pretty fast.
Good night for now.
So basically use the serial monitor as a debugger. Add print statements to show you every value of every variable whenever they change. You should be able to find the problem pretty fast.
Good night for now.