I'm with Eg.h20 here. You really need to know what the code actually was in order to make an informed decision.
I'm assuming by "thermometer", you meant "thermostat". That could cause the check engine light if it got stuck open but flashing the BCM is the wrong "1st try" solution to that.