Car brake warning light

I have a 2001 Saturn l200. About a week ago, my brake warning light came on. So I check the brake fluid and it was fine. The car still stops fine when I come to a stop.

Could your parking brake be partially engaged?

Or the switch for the parking brake may have filed / fallen off.

well last night i put the parking brake on then it went off.about 5 mins after that it came back on.and know it just stays on.

The light went off when you put the brake ON?? I’d definitely investigate that switch.

yea and then it came back on