Detecting an object using sound waves includes outputting a sound wave
from a transducer, receiving an echo after outputting the sound wave,
obtaining a threshold value based on the echo and plural other echoes
that are within a predetermined range of the echo, and determining if the
echo is a result of the sound wave based on the threshold value.