This video shows that automatically obstacle avoiding flight by Drone. Detect height by pressure sensor and detect obstacle by SMD type of Ultrasonic sensor.
2:35