apparatus for a mass spectrometer is disclosed comprising an ion source , a heater for heating a gas flow to the ion source , a temperature sensor for monitoring the temperature of the heater , and a control system . the control system is arranged and adapted to determine a flow rate of the gas flow by monitoring the power supplied to the heater and the temperature of the heater .