I want to do a line train. The train follow the black line but if the colour sensor detect red colour the train stop for 15 seg.
This in theory go well, but there a lot of false positives. To change colour dont work.
I want to correct this mistake in the code, for example if in 3 segundes detect 3 positives run the program. Any idea?