Hi Judy.
The check engine light comes on when the car's computer has detected a problem with some component in the emission system or engine controls. When the light comes on, a code about the failure is stored on the car's computer. Using a "scan tool", the code can be retrieved.
Once the technician knows the code, they have a pretty good idea of what part or sensor has caused the problem. The system should be scanned, even if the car is still running well, to be sure there is no damage being caused to the motor or other related parts. Often failures are caused by something like a broken wire, loose connection, a leaking vacuum hose, or even loose gas cap. If you get the codes and post them here, we can help you with repairs.
Many auto parts stores (like Advance or Auto Zone) will scan the system for free, in hopes of selling you the parts needed for repairs. But if you could have the codes read from the car and write them down (should be a letter and 4 number), then you could bring the code(s) back here and we can see what is happening.
Also, the light should come on briefly when you turn on the key, but do not start the engine.
Please let me know what you find out so we can proceed.
Take Care, Greg A.
If this has helped you, Please click Accept so I get credit for the answer. Bonus/Positive Feedback is appreciated. Thank You!