Why does the 'Service Engine Soon' light come on after driving through 3 plus inches of snow or a puddle of water or a rainstorm?

one of the ssensors got water in it