modify code to use one wire NewPing library

change to newPing library to drive ultrasonic sensor