what would cause the breake light and charginhg system light to shine off and on on 2001 Hyundai Sonata

It has been raining here for the last three days new breaks front and rear

Asked by for the 2001 Hyundai Sonata
Providing connections are good at the fuses and at the alternator, chances are the alternator is starting to fail.
Thanks guys. I replaced the alt.Yesterday all seems fine.
It's nice to know that there are still
helpfull people in this world.
1 more answer
I agree with Northside, The alternator is starting to fail internally with the moisture. I would replace and retest.