PID controller, levitating pin pong ball. Help with ultrasonic sensor

@Whandall, yes thats true I don't want to be sending wrong values for the controller. Good point about the pulseIn and int Duration; going to try that now.