Ultrasonic Sensor and LCD Display code help needed !!

what do i write to define the ping pin and read the sensor to the lcd screen