Arduino with Ping sensor

I missed that. It's very confusing having functions that return a value also set a global variable.