I would use a dedicated desiccant like damprid. Much more effective than rice. You wouldn’t want it touching the device though, just in the same sealed container.