The atmosphere is often in a convective steady state at constant entropy, not constant temperature. In such equilibrium $\mathrm{pV}^\gamma$ is independent of altitude, where $\gamma=C_p / C_v$. Use the condition of hydrostatic equilibrium in a uniform gravitational field to find an expression for $d T / d z$, where $z$ is the altitude.