Thermal mass flow meters typically consist of two temperature sensors and a heating element. One sensor measures the temperature of the gas before it is heated, and the other measures the temperature after heating. The heat introduced by the heating element is absorbed by the gas, and the difference in temperature between the two sensors is used to calculate the mass flow rate. This principle relies on the specific heat capacity of the gas being constant and known.