The condensate trap isolates the discharge which builds up in the primary heating/cooling system. This is caused by the changes in the pressure and temperature within those systems. A discharge pipe attached to the condensate trap then allows any held wat