How can I prevent condensation in the electrical connector?

The simplest means of keeping condensation away is by using an electric heating coil, which is an accessory that can be fitted  between the connection box parking light and the ground.