Using BMP280 sensor to control servos. Need some guidance with coding

I have a suggestion for you:

Instead of using the value of 1013.25 hPa as the reference pressure that is used in all the altitude measurements mentioned in this topic, you could measure the pressure at the launch site near the beginning of the sketch, and use that figure as the reference pressure.

That way all your altitude measurements will be the actual height above the launch site.