In accordance with one embodiment, a controller in a fluid delivery system controls magnitudes of pressure in a first volume and a second volume. The first volume is of a known magnitude. The second volume is of an unknown magnitude and varies. The controller estimates a temperature of gas in the first volume and a temperature of gas in the second volume based on measurements of pressure in the first volume and measurements of pressure in the second volume. The controller then calculates a magnitude of the second volume based on measured pressures of the gases and estimated temperatures of gases in the first volume and the second volume.