Arduino_MKRTHERM - readReferenceTemperature()

Read the thermocouple’s cold junction (the connection between the wire of the thermocouple and the connector or the screw terminal) temperature value. This value is used to compensate the temperature reading of the themocouple’s hot junction.

Syntax

THERM.readReferenceTemperature()

Parameters

None.

Returns

The thermocouple’s cold junction temperature value in degrees Celsius.

Example

Serial.print("Reference temperature = ");
Serial.print(THERM.readReferenceTemperature());
Serial.println(" °C");

See also