2004 Mazda Mazda6 check engine light

Engine light came on. First time driving car in 3 weeks. Didn’t go off after driving about 10 miles. Car drives fine.

take the car to autozone or some other parts store that will read your codes for you. report back here with the codes along with how many miles are on your engine so we can try to help you