Connect Ultrasonic sensor to Arduino ATmega328

How to connect a Ultrasonic sensor to a Arduino ATmega 328 and record the distance.I also Need a clear Circuit Diagram as I'm not an Electronics Engineer.Please Help as soon as possible

david99:
How to connect a Ultrasonic sensor to a Arduino ATmega 328 and record the distance.I also Need a clear Circuit Diagram as I'm not an Electronics Engineer.Please Help as soon as possible

What type of ultrasonic sensor?
Do you mean connect to a stand-alone ATMega328, or an Arduino board that contains one?

Finally, have you actually done any searching? There are a million resources on this subject on the web.

If it's a HC-SR04, Google this term:- "how to connect a HC-SR04"

Edit: Then take a look at the "NewPing" library. Google will find it.