Code to interface with thermocouples