If the CCD is a cooled unit, then it will have a extractor fan over the heat sink. By enclosing the unit in a container will increase the inside temperature and reduce condensation, but you still need to cut some vents so some of the warm air can be expelled.
