added readings from ultrasonic range sensor, for this application distance is approximated to the lower int via a type cast