I have a program that uses the colour sensor to progress that program. The colours are in a certain order. If the wrong colour is detected, the program stops.
I want to restart the program from the beginning automatically if at any point the wrong colour is detected. Please note that I already have a loop encompassing the entire program if the colours are detected in the correct order.