I finally ran out of memory

What kind of problem exactly are you having? If you are using the code I posted to read the PING sensor, you should be getting reasonable readings from it.

8-Dale