How do bats avoid obstacles in their way, when in flight ?
Bats use something called echolocation, in which they emit a nearly constant stream of high-pitched squeaks that few animals can hear. These bounce off of nearby objects and obstacles and then return to the bat's ears in a stream of information that tells them where to go so as to avoid hitting things.