Problems with serial print (using a input sensor & Servomotor)

the servo is connect to a breadboard (where also the sensor is connected to) both are connect to the 5V and ground of the arduino using the breadboard.