modify code to use one wire NewPing library