How does air move? (From high temp to low temp or low temp to high temp)

Air moves from high temperature to low temperature. This phenomenon is known as convection. When air is heated, its molecules gain energy and move faster, causing them to spread out and become less dense. This leads to a decrease in air pressure. On the other hand, at a lower temperature, air molecules move slower, becoming denser and creating a higher pressure. The difference in pressure between the areas of high temperature and low temperature causes the air to flow, with air moving from the high-temperature region to the low-temperature region. This movement of air helps to distribute heat and maintain equilibrium in the atmosphere.