So the way we actually think about these variables in thermodynamics is that U is a multivariable function of S and V, whose partial derivatives are temperature and pressure respectively. Or rather negative pressure, because compressing something and
Temperature and the Sackur–Tetrode Equation