What is a Mass Airflow Sensor?

A mass airflow sensor is a device that determines the amount of air passing through its location. Usually used in automobiles, the MAS measures the air flowing into the engine and uses the information to determine how much fuel to inject into the mixture.