How do they measure distance from sea level??????
It is done 2 ways by aircraft, by barostatic altimeters, they have a bellows that reacts to atmospheric pressure and transduce this to altitude and they use radar altimeters, which use radar to reflect off whatever is below, water, or mountains. Radar altimeters warn aircraft of upcoming danger of mountains, barostatic types do not. Modern day aircraft also have laser devices to measure this.