Concept Flow - Barometer for altitude
Start
Read Pressure
Calculate Altitude
Use Altitude for Control
Repeat Reading
The drone reads air pressure from the barometer, calculates altitude from it, then uses that altitude to control flight, repeating this process continuously.