This algorithm somewhat emulates the lane following algorithms used by driverless cars. They use two sensors to follow the corresponding lane on either side of the car plus a third to look at the lane straight ahead. Version 1 is designed only for clockwise following. A subsequent effort will be to have students convert it into something that can follow the track in both directions.