It might just be your gas cap. Many people don’t know this, but a loose, cracked, or faulty gas cap can cause fuel to evaporate, thus cuing your check engine light. So first things first, pull over (as soon as it’s safe) and make sure your gas cap is on tight.