A distance measuring device includes a transmitter for transmitting an
acoustic signal at a distant object, an acoustic signal receiver for
receiving a reflected acoustic signal reflected from the distant object,
a temperature sensor detecting air temperature, a humidity sensor
detecting air humidity, an amplifier amplifying the reflected acoustic
signal, a comparator coupled to the amplifier comparing the amplified
reflected acoustic signal with a reference and generating a comparator
output when the level of the amplified reflected acoustic signal exceeds
the reference, a gain controller increasing the gain from transmitting an
acoustic signal until the comparator output is generated, a threshold
generator providing the reference to the comparator and decreasing the
reference at an exponential rate from transmitting the acoustic signal
until the comparator output is generated, and a controller determining
use of only the air temperature, velocity of the acoustic signal, and
distance traveled from transmitting the acoustic signal until the
comparator output is generated.