The mass airflow (MAF) sensor counts how much air is blown into the engine. When the mass air flow sensor's measurement of the amount of air entering the engine is outside the manufacturer's recommended range, the check engine light is illuminated with the code P0101.