How to add kill switch code(toggle on/off switch) to my vacuum bot

Can any experts help this poor guy here with his code? How to add kill switch code(toggle on/off switch) to my floor mopping bot?

OAR_3.0.ino (2.19 KB)

Kill switches shouldn't rely on code. The kill switch should be on the power so it completely cuts power to the device. A kill switch should be sure to kill it dead.

Aight I will try

Think like a light switch.