jremington:
Why is this an "issue"? You should compute a weighted average of the sensor array output to find the line center anyway. See the extensive Pololu documentation for guidance.
I am confused because I use readLine() function. I assumed every time 2 sensors will see the line. I afraid when the robot comes to the turning point there is a possibility that only one sensor see the line and position may be misiterpreted. Let me illustrate:
'' I am using 8A sensors(0-7) if the line is under the sensors 2 and 3 the sum is 7000. And this is the position exactly on the middle.
while turning let say only sensor 4 sees the line and position is 5000 which may cause robot to turn the wrong direction. ''
I will check tomorrow. I have written the code but not sure exactly if it will work properly. I hope there will not be any problem because we have to do other things rather than this simple part.