if((digitalRead(R_S) == 0)&&(digitalRead(L_S) == 0)){forward();} //if Right Sensor and Left Sensor are at White color then it will call forword function if ...
The robot carries a row of light sensors across its front. From their readings it estimates where the black line lies relative to the center of the array. I call that ...