Is this DS1603LV1.0 sensor bad? Or am I bad?

I have an ultrasonic sensor measuring distance in air. I get spurious readings periodically.
Rather than try to average them out I:

  1. Read 9 readings into an array
  2. sorted the array
  3. used the middle reading.

You could take more readings and use the middle 3 averaged.