This video will guide you through the basics of what the Line Sensor is and what the line sensor code blocks do in MakeCode.

Line Sensor | Tutorial

The next section is a coding example of this sensor’s code blocks:

Continue your learning by using the Line Sensor in this project: