Distance Sensors + Servos

Try printing 'distance' to the serial monitor maybe that will reveal
something?