I have a rugged motor shield attached to my arduino.
So? You aren't listening.
I am listening, I was responding to the Parelleling from PeterH.
I am trying to get the robot to count once the sensor is triggered, and stop and reset once the sensor is released. Should changing the variable of Millis() around fix the entire issue? I need it to not count when the sensor is LOW.
Also, the code is not random. The shield can be found here: ruggedcircuits.com/html/rugged_motor_driver.html (which the setup is in my code).
And the loop is for responding to my two seperate touch sensors.
As for my logic in the program, what should I change around if it is not the delays? It was working fine before I added them

Thanks