I’m making a robot that moves around with a liquid sensor. When the sensor detects liquid a red LED blinks, indicating someone must come clean it up. I have a working code for the LED and sensor, however, i do not know how to incorporate a code for the motor. The motor must also stop when the sensor detects liquid and then there is a push button that must be pressed to restart the motor. Attached is what i have of the code so far. Does anyone know how to code for the motor and push button?
