Help to Ping only every 5 sec, and also how to send digits to my 7-seg.display!?

To have my parallaxPing-sensor ping every 5 sec,

I can't see your code on my phone, but have you thought of using the technique in the blink without delay example?