The relationship between the two is that air temperature changes the air pressure. For example, as the air warms up the molecules in the air become more active and they use up more individual space even though there is the same number of molecules. This causes an increase in the air pressure.