The answer to 'how does air conditioner work' is that an air conditioner uses a refrigeration system to cool and dehumidify the air in your home. The main components are the compressor, condenser, expansion valve, and evaporator coil. The refrigerant circulates through these components, absorbing heat from the indoor air and releasing it outside, resulting in cooled and dehumidified air being circulated back into your home.
Air conditioners work by using the principles of evaporation and condensation to transfer heat from the indoor air to the outdoor air. The compressor pressurizes the refrigerant, which then flows through the condenser coil outside, releasing the heat. The refrigerant then expands through the expansion valve, cooling it down, and flows through the evaporator coil inside, absorbing heat from the indoor air. A fan blows the cooled air back into your home, while the heat absorbed by the refrigerant is released outside.