Making vehicle stop in front of wall using stepper motor and ultrasonic (HELP)

I'm just asking for some feedback on the code i tried but doesn't work, if you're too stuck up to help don't bother...