You could try going round the entire engine bay unplugging each sensor plug one at a time cleaning them and try spraying electrical grease into them before plugging them back together this should help the electrical connection and prevent the ingress of water again.
Hope this helps
P.S. if it is a 4x4 dont forget the two big multiplugs at the back of the bay.