Check engine light comes and goes at random on 2006 Hummer H3

Check engine light comes on for a short time and goes off. This happens at random.

Asked by for the 2006 Hummer H3

Had that same problem and now it finally came on all the time. I am told it is my Coolant Temp Sensor. I was told to check my Coolant levels because that could cause the problem.