Problem of Ultrasonic sensor

There is most likely a problem with your program, which you forgot to post.

Please read and follow the directions in the "How to use this forum" post. Post the code, using code tags, and a wiring diagram.