How does a dehumidifier work?

Warm air is brought into the unit and is passed over refrigerated coils, causing condensation that goes down the drain and gradually decreasing airborne moisture. Once the humidity set point is reached, the dehumidifier shuts off.