Displaying the Minimum Value

I would do it like this

set minDistance to 9999
start for loop
  move servo to angle
  take a distance reading
  if reading less than minDistance
    minDistance = reading
  end if
  move servo
end for loop
//minDistance now holds the minimum distance recorded

Incidentally, your code would be much neater if you put the distance measuring and distance display code in functions and called them when required in each for loop.