Review and do the coding examples in these modules:
Measuring Distances
Experiment with various object in the lab to determine which work best with the ultrasonic distance center.
Obstacle Avoidance
Locating a Nearby Object