The mass air flow sensor (MAF) is used to find out the how much air is entering the engine. The measurement is relayed to the ECU to balance the correct fuel mass sent to the engine.