It sounds like you had it in the shop and the tech. read the codes if so he should have given you a report of what the codes were.
If you can give me the code numbers I can probaly tell you whats wrong and how to fix it.
At the very least we'll have something to start with all we know right now is your check engine light is on.