A Cmos Interface for Thermocouples with Reference-Junction Compensation