Air expands when it gets heated. The expanded air is less dense and hence it ascends. This results in lowering of atmospheric pressure.
The ascending air spreads to the sides and cools. On cooling, it becomes dense and descends. As a result, atmospheric pressure increases.
As temperature increases, pressure decreases and as temperature decreases, pressure increases.