I'm new at this, so it took me a while to figure out how to use the ping library, but it works. I was confused at first because five pings are actually sent out. I would have thought ping would have been in the base libraries, but this does just fine.
Thank you very much.