Simple ultrasonic sensor

Use the </> in the menu above to put code in code tags.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.