added code to get distance from ping sensor