FORD ESCAPE ENGINE PROBLEM

2004 Ford Escape • 150,000 miles

Runs fine unless it has been raining. I know that might sound weird but after a hard rain, the vehicle will shake and the check engine light will start flashing. Do you know what might be causing this?