The xbee gives you a serial stream over a wireless link. I don't see how you can drive a ping sensor from that without something sitting between the xbee and the ping sensor to receive from the serial stream and drive an I/O pin. There are plenty of wireless alternatives to xbee but it's impossible to know which ones might meet your need without knowing more about the distance you're trying to cover and what sort of environment you're in.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16