You need to connect the LCD according to the diagram, as well as the ultrasonic sensor to pins 2 and 4. You also need to install the Ultrasonic library using the library manager.
Distance Measurer using Ultrasonic and LCD
This circuit uses an ultrasonic sensor to measure distance and displays it on a liquid crystal display.
![Distance Measurer using Ultrasonic and LCD](https://hackster.imgix.net/uploads/attachments/278925/picture_1_6JtPWgfrgi.jpg?auto=compress%2Cformat&w=900&h=675&fit=min)
Read more
Comments