The way it's done in work class ROVs is with a pair of bare wires connected to a low power shorting circuit. They're placed in the low points in the electronics housing and send an alarm to operators when they're tripped (by sea water)
It's very simple, but very effective. Leaks are usually very slow (were a switch like this will help) or very fast where switches don't do a thing.
Humidity sensors solve a different problem of humid air. A cold leak into the interior won't necessarily evaporate into the canister's atmosphere due to low temperature. What I've seen done is to conformally coat all surfaces.
If you're worried about humidity you could install Nitrogen purge ports to the canister.
Oil Submergence is ok for some applications. Oil Submergence along with pressure balanced containment is ok for less applications (pressure tolerant electronics (PTE)). PTE may be alright for your constantly monitored/operated control unit onboard the ROV. I wouldn't say the same for standalone, remote, critical control devices. This is because no one sells components qualified for PTE and you have to create your own testing and quality protocol to deal with infant mortality.