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

Sonar Sensor | Tutorial

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

Continue your learning by using the Sonar Sensor in these projects: