Using ultrasonic sensor to detect an object with a buzzer

No version of the LiquidCrystal library supports the println function. That is the cause of some of the weird characters. Since newline does not work you must use setCursor to conrol the cursor line.

Read the forum guidelines to see how to post code.

Post your test code in code tags. Use the IDE autoformat tool (ctrl-t or Tools, Auto Format) to indent the code for readability before posting code.

1 Like