CPAP machines consist of a motor that generates air pressure, a hose to deliver the air, and a mask that fits over the nose or mouth. The pressurized air prevents the airway from collapsing and ensures continuous breathing during sleep. Some advanced models also include features like humidifiers to add moisture to the air, enhancing comfort.