MFCs operate based on thermal, differential pressure, or coriolis principles. The most common type, thermal MFCs, work by measuring the heat transfer from a heating element to the gas or liquid flowing through the sensor. Changes in the flow rate affect the amount of heat transferred, allowing the MFC to calculate and adjust the flow accordingly. The controller then uses a feedback loop to maintain the set flow rate by adjusting a control valve.