Maze solving using arduino uno

I need help
I made a code for initial stage of a linefollower
whenever the bot takes a turn and its not proper then after keeping it on the line it doesn't respond properly

I use 6 sensors
and the max possible is 2^6=64
but I use only a few in coding .
Does that make any problem because I have wrong respond once it leave the track and I keep it on the line

finish.ino (2.63 KB)

sachinkay:
whenever the bot takes a turn and its not proper then after keeping it on the line it doesn't respond properly

Is that a question or a statement? Can you re-write it with a sentence that uses a question-mark?

Please post your code in [ code ] tags. Use the full reply instead of quick-reply to see the code button which looks like </>