Reference and calculations for thermocouples