I am currently using the Arduino UNO board car with 3 (i think it was infrared?) sensors that scan the line. i am trying now to make it automatically stop if it goes off the line. it works a little if i just put //If sensors do driving. else stop
However this way it will stop anytime it slightly doesnt detect the line, in this case the electrical tape, and only hardly goes around.
I have been sitting at this for the past 2 weeks and couldn’t figure something out so im asking here
this is the code wich im trying to modify(the part for the left sensor got cut off but its the same as for the right one.)