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.
Read more
Comments