ThermocoupleSensor#

class ThermocoupleSensor(
type: TC_TYPE,
cjc_temp: float,
)[source]#

Bases: Scaler

Thermocouple voltage → °C with cold-junction compensation.

>>> ThermocoupleSensor(TC_TYPE.K, cjc_temp=25.0)  # Type K, 25 °C reference junction

Initialize the thermocouple sensor.

Parameters:
  • type – Thermocouple type (B/E/J/K/N/R/S/T).

  • cjc_temp – Cold-junction reference temperature in °C.

Attributes

units

Physical units of the scaled output (e.g. "V", "degC", "psi").

Methods

scale

Voltage (volts or millivolts per the thermocouples library) → temperature (°C).