All I know how to do now is to make one ping. I want it to ping in 5 directions and compare the pings.
Make an array of five ping objects, and use a "for" loop to iterate through, or if you've only got one ping and a servo, make an array of whatever datatype the ping range method returns.