Arduino project

Well I cant seem to get the correct program for my sharp sensor to correspond to my LEDs properly if you can help in any way let me know... Ohh also I am using an atmega 328 and a sharp 2Y0A21 with three LEDs.

A picture of how you have the sensor and LEDs connected to the Arduino would be worth 1000 words.

What code have you tried, and what worked or didn't work?