Project sensor SRF05 and 5 leds

Well, in the sketch that you posted, there is a variable called "Distance".
Once "Distance" has been acquired then you can make a determination as to which LED/s to turn on.
Look into if and if...else