Line following
Time: 11:05 AM to 11:35 AM
Set up the track
Place a strip of black tape on a light-colored surface. If your kit includes a printed track, use that instead.Run the line tracking script
Read the sensor data
Check what the sensor sees in real time:How it works
The robot is not “seeing” the line. It reads three brightness values and uses a simple if/else rule to steer:
- If the left sensor is over the dark line, steer left
- If the right sensor is over the dark line, steer right
- If the center sensor is over the line, go straight

