eBay had a line follower cart kit.
It has two motors and a two ight sensors and LEDS and a LM393 comparator.
The LM393 uses an open collector output that sinks current to turn on the motor.
The comparator needs the inputs to be about 1.5V below the positive supply. This means it is more that a comparator.
sensor1 | sensor2 | motor1 | motor2 |
dark | dark | on | on |
bright | brighter | off | on |
brighter | bright | on | off |
Mater sure it turns in circles on a bright surface, and goes straight on dark surface.
Now the fun starts!