Cheap tip to avoid water ingress

If you have 3-pin 240V shore power sockets on board, seal them with a plastic blanking plug (of the type used to stop children electrocuting themselves) when you’re sailing offshore or in rough weather.