This ElecFreaks sonarbit package was developed by ElecFreaks with minor assistance from Tinkercademy.
basic.forever(() => {
basic.showNumber(sonarbit.sonarbit_distance(DigitalPin.P16))
basic.pause(100)
})
MIT
for PXT/microbit (The metadata above is needed for package search.)