# ThermocoupleSensor

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

Bases: [`Scaler`](https://dev.nominal.io/instro/ref/instruments/instro.daq.scaling.Scaler.md#instro.daq.scaling.Scaler "instro.daq.scaling.scaling.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`](https://dev.nominal.io/instro/ref/instruments/instro.daq.scaling.thermocouple.ThermocoupleSensor.md#instro.daq.scaling.thermocouple.ThermocoupleSensor.units "instro.daq.scaling.thermocouple.ThermocoupleSensor.units") | Physical units of the scaled output (e.g. `"V"`, `"degC"`, `"psi"`). |
| --- | --- |

Methods

| [`scale`](https://dev.nominal.io/instro/ref/instruments/instro.daq.scaling.thermocouple.ThermocoupleSensor.md#instro.daq.scaling.thermocouple.ThermocoupleSensor.scale "instro.daq.scaling.thermocouple.ThermocoupleSensor.scale") | Voltage (volts or millivolts per the `thermocouples` library) → temperature (°C). |
| --- | --- |

### scale(raw: float | int) → float[source]

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

### property units: str

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