Reference   Language | Libraries | Comparison | Changes

Arduino_MKRTHERM : THERM class

readTemperature

Description

Read the thermocouple’s hot junction (the tip) temperature value.

Syntax

THERM.readTemperature()

Parameters

None

Returns

The thermocouple’s temperature value in degrees Celsius.

Example


Serial.print("Temperature ");
Serial.print(THERM.readTemperature());
Serial.println(" °C");

See Also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.