when you try to read thermocouple and ambient temperature simultaneously for cold junction compensation, due to bad config register, thermocouple voltage is mistakenly replaced with internal temperature sensor's voltage (both voltages are same with internal sensor's voltage)!!