Need Help with HC-SR04 (Ultrasonic Sensor)

You should be printing "var", not a new ranging value