A heat exchanger transfers heat between two or more liquids. Each liquid is separated by a wall to prevent them from mixing. Sometimes, in an HVAC system, the heat exchange will occur between a gas and a liquid. They can be used for both heating and cooling.