Line follower with stop logic

how do i make pololu 3pi to stop at the end of the black line wer all the sensors are exposed to the white background

Hello.

Inside your line-following loop, you can add some logic to check the individual readings of all five sensors. If you see that they are all detecting white, you can command the 3pi motors to stop moving.

- Ben