Sonar sensor to arduino to servo

Ow, i'm sorry for that work sir, it's working but it does not stores the data from the sensor. What might be the problem?.
I'm just starting to loose hope here.