Speed Sensor (Velocity Km/H) Using Ultrasonic Sensor (Ping)

AWOL:
Any variable declared within a function like "loop" is going to have limited use for remembering its value.
If you want a variable to maintain its value, declare it with global scope.

I thought declaring a variable static solves any 'memory' problem for variables declared within the scope of a function?

Lefty