The density of the air decreases as altitude increases, pressure also decreases as we move up the troposphere and temperature increases as we move higher to the outer space. I hope my answer has come to your help. God bless and have a nice day ahead!