Sonar

sonar.get_distance() float:

Return the distance measured by the sensor in cm.

Returns:

Distance in centimeters

Return type:

float