At constant pressure,
$$ V\propto T$$
Letting the piston freely moving fixes the pressure of the gas to the atmospheric;
then heating the gas causes the $T$ to increase,
this causes the $V$ to increase by the same factor.
However, in the other direction, how can one maintain the pressure constant while changing volume? Feels it is impossible to change volume and maintain the pressure constant at the same time... (to observe how the temperature changes)