Skip to content

Integration with rtd-sensor

Introduced in: rtd-acquire 0.1.0a1

rtd-acquire and rtd-sensor are companion packages with an explicit boundary:

rtd-acquire → resistance → rtd-sensor

They do not depend on one another at runtime.

rtd-acquire is not always required

Boundary clarification introduced in: rtd-acquire 0.3.0

When raw hardware still needs converter handling, electrical scaling, calibration, or acquisition diagnostics, rtd-acquire can produce the resistance that rtd-sensor consumes.

If an instrument or RTD interface already provides the desired trustworthy RTD-element resistance in ohms, applications can pass that resistance directly to rtd-sensor; no rtd-acquire driver is required merely for interoperability.

Pass resistance explicitly

from rtd_sensor import pt100

measurement = device.read()
if measurement.resistance_ohms is not None:
    temperature_c = pt100.resistance_to_celsius(
        measurement.resistance_ohms
    )

This keeps the hardware acquisition reusable even when the application changes RTD model or does not need temperature conversion at all.

Faults stop before model interpretation

If resistance_ohms is None, the acquisition layer has determined that it does not have a trustworthy resistance to hand off. Handle the acquisition diagnostics rather than attempting temperature conversion.

Continue learning

Visit the RTD Playground

The Playground is hosted by rtd-sensor because its experiments focus on RTD models and what resistance means as temperature.