I had the same thing happen about a year ago in my Mazda 3. The coolant temp needle operated as normal, even the heat seemed about the same, but the check engine light came on.
It's pretty neat because it can take along time to see the low temperature on the dummy gauge, which means getting worse fuel economy. The ECU can detect this much faster.