A surgical device includes at least one electronic component having a moisture collection agent sealed therein that is configured to protect electronic elements of the electronic component and/or a moisture mitigation system including a moisture migration component disposed within the surgical device and a moisture collection agent disposed adjacent to the moisture migration component to remove moisture from within the surgical device. The at least one electronic component may include a substrate, electronic elements disposed on a surface of the substrate, a coating covering the surface of the substrate and the electronic elements disposed thereon, and a moisture collection agent disposed between the substrate and the coating to control moisture at the surface of the substrate. The at least one electronic component may include a substrate having a base and a cover defining a sealed cavity therein, and electronic elements and a moisture collection agent disposed within the sealed cavity.