cls() write("Starting...") repeat write(sonarReading(1) .. " " .. sonarReading(2)) until isPressed(ESCAPE) write("done")