Pressure and volume are how the atoms measure the spacing of a gas, there is a mathematical model call Perfect Gas Law. This math is close and effective over large temperature ranges, but does not show why many gas do not obey over all range of temperatures.

