Actually using a hermetically sealed enclosure is not a good idea at all (unless you fill it with a gas like Nitrogen). There will always be moisture going in & out.
No, and this is contradictory!
If there's always moisture in and out, then how would fill gas change anything? Dry air, N2, Ar, SF6 -- they'll all equilibriate with ambient gasses, including H2O, O2, even what small amounts of He and H2 are around.
The point is to have a seal that is impermeable even to those. Vacuum apparatus does this every day. Metal-metal and metal-glass seals are typical, but even gasketed joints can be used to a certain extent.
This is the difference between a truly hermetic seal that does not allow gaseous diffusion, and something that is merely sealed against relatively rapid pressure changes like a plastic IP67 enclosure.
A sealed, but non-hermetic, enclosure might equalize in days, years or centuries, but if it's permeable to gas, gas will diffuse in and out, and condensation and oxidation will be a problem at some point. (Obviously, if it's in the centuries, that's good enough for commercial purposes, but still not truly hermetic.)
Tim