Install a breathable synthetic underlayment layer underneath the metal roof. Underlayment provides a layer through which moisture on the surface of the metal roof cannot penetrate; breathable underlayment does not trap vapor inside a roof system as other types of underlayment do.
Add a vapor diffusion retarder on the warm side of the roof. Many materials can be used for this purpose, including rigid foam insulation, reinforced plastic, aluminum and stainless steel. Purchase any material labeled as a vapor barrier or vapor diffusion retarder and with a perm rating of less than 1.0. Install the material on the ceiling, according to the manufacturer's instructions.
Ventilate the attic. This is an essential and often overlooked part of preventing moisture problems on a residential roof. Ventilate the attic with soffit, ridge and gable vents and keep them clear of debris and obstructions. Install rafter vents in between the attic rafters and keep the insulation well maintained.