Heat & Moisture Protection

Yes an enclosure is best.
The other alternative is a spray on conformal coating, this will stop moisture.