When air is warmer, the particles in the air expand and cause the air's volume to increase. Because density is the mass of the air divided by the volume of the air, and since the mass remained the same, the density decreases, hence why hot air rises and cold air sinks.
~Ares