damp weather problem

Hey Guys,
My problem is that whenever the weather is damp or rainy my car idles really rough or even stalls. After it dries up it runs fine. I replaced the distributor and the spark plug wires but the problem still persists. Any one have any advice I could use? Any help would be much appreciated. Thx.

my car does that sometimes too, only in really heavy rain, it wont start easily or sometimes runs rough, usually clears up after a couple mins of driving tho, not sure what it is tho, first guess would obviously be ignition but if you replaced cap and roter, and wires then i duno? plugs are ok?

the plugs seem fine. Maybe water is leaking into one of the sensors or something like that? I dunno.