It calculates the distance with the help of HC-SR04 Ultrasonic sensor and displays the distance in centimetres in the 16*2 LCD Display.

This project is used to calculate the distance from itself to any desired place.

 

Pin out details:-

 

HC-SR04 Ultrasonic Sensor
  VCC to Arduino 5V
  GND to Arduino GND
  Echo to Arduino pin 8
  Trig to Arduino pin 13

LCD Display (I used JHD162A)
  VSS to Arduino GND
  VCC to Arduino 5V
  VEE to Arduino GND
  RS to Arduino pin 12
  R/W to Arduino pin GND
  E to Arduino pin 11
  DB4 to Arduino pin 5
  DB5 to Arduino pin 4
  DB6 to Arduino pin 3
  DB7 to Arduino pin 2
  LED+ to Arduino 5V
  LED- to Arduino GND