Halteres
Every vibrating object tends to maintain its plane of vibration, a result of the Coriolis effect. If the body of the insect changes direction in flight or rotates about its axis, the vibrating halteres exert a force on the body. The insect detects this force with sensory organs at the base of the halteres.