Added code to get distance from ping sensor