Check engine light

After idling for a while the check engine light has come on and stays on. I have a 2005 Mazda RX8. the car has 44000 miles on it, What should be
done…?
I

See if a local auto parts store will read the check engine light code for free. Post the actual code (like Pxxxx) here and some folks will help you evaluate it.