An air quality sensor located in the passenger compartment detects harmful impurities in the air and sends appropriate signals to the air conditioning control unit. The sensor detects sulfur dioxide, carbon dioxide, carbon monoxide, hydrocarbons and allergens.