The Line Follower is built from the Lego Spike Prime educational kit. The color sensor, located in the front and directed downward, registers white or black color and sends a control action to the motor – turn left or right.
The set includes step-by-step building instruction and an example of program (in Spike environment).