A clogged air filter can wreck havoc on the engine's fuel management system, causing trouble codes to show up. Some cars have a filter gauge like this one. If you can't see daylight easily through the filter, it is time for a change.