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

Touch Sensor | Tutorial

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

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