The modern air conditioner was invented by Willis Haviland Carrier in 1902. He was an American engineer who developed the first electrical air conditioning system while solving a humidity control problem for a printing plant in Brooklyn, New York. Carrier's invention controlled both temperature and humidity by sending air through coils filled with cold water to cool the air and remove moisture, which laid the foundation for the air conditioning industry as we know it today.