Using an ultrasonic sensor to control motor to move in the forward and reverse direction

yes that's what i want
to be STUCK!