Send a weather balloon up through the standard atmosphere and read the air as it thins and changes temperature layer by layer.
The science
Standard atmosphere. The 1976 US Standard Atmosphere is a model of a mean, dry atmosphere. Temperature is piecewise linear in geopotential height H = r₀h/(r₀+h): −6.5 K/km (troposphere, to 11 km), 0 (to 20), +1 (to 32), +2.8 (to 47), 0 (stratopause to 51), −2.8 (to 71), −2.0 K/km (to 84.852 km, the mesopause). Temperature rises in the stratosphere because ozone absorbs ultraviolet light, and in the thermosphere because the very thin gas absorbs extreme ultraviolet.
Pressure. Hydrostatic balance dp/dH = −ρg₀ with ρ = pM/(R*T) gives p = pb[T/Tb]^(−g₀M/(R*L)) for a layer with lapse rate L, and p = pb exp(−g₀M(H−Hb)/(R*Tb)) for an isothermal layer. Sound speed is c = √(γRT) and the mean free path λ = kT/(√2 π d² p) with d = 0.365 nm.
Balloon. Helium at ambient pressure and temperature fills an elastic envelope: V = mHe R* T / (MHe p) (Boyle/ideal gas). The displaced-air mass ρV = mHeMair/MHe does not depend on height, so the free lift stays constant and the balloon rises at the drag-limited speed v = √(2 F / (ρ Cd A)) (Cd = 0.3). It bursts when V reaches the envelope volume.
Simplifications. No wind in the vertical, no heat exchange between gas and air (gas = ambient T), no stretch pressure, no humidity, standard (not real) day. The table stops at 86 km: the thermosphere and exosphere are drawn schematically and are not modelled numerically. Layer boundaries move with season and latitude in the real atmosphere. Educational only. Models built with Blender, scene by Three.js.