A small tutorial for interfacing a ultrasonic sensor with arduino this uses a sensor called HC-SR04 which sends ultrasonic waves to detect objects in front of it.
If you do not know about LED and ultrasonic sensor (pinout, how it works, how to program ..), learn about them in the following tutorials: -Arduino-LED tutorial ...