Changed ping sensor code to work with new library and new 4-pin sensors. Still works with 3-pin sensors.