The Engine Computer detected a problem, set a diagnostic fault code, and since it could adversely affect emissions, it turned on the Check Engine light. The place to start is by having the fault codes read and recorded. That will indicate the circuit or system that needs further diagnosis or the unacceptable operating condition.
Here is link to an article on check engine light and scanning for codes:
Saturday, April 16th, 2016 AT 8:34 PM