TempSensorBase

class TempSensorBase[source]

Bases: object

Base class for Temperature Sensor interface.

error

Error message.

Type:

str

__init__()

Methods

__init__()

get_temperature()

Gets temperature and humidity.

start()

Starts the sensor.

Attributes

error: str = 'Error connecting to the temp_sensor '
start() None[source]

Starts the sensor.

get_temperature() tuple[float, float, str][source]

Gets temperature and humidity.

Returns:

Temperature, humidity, and formatted string.

Return type:

tuple[float, float, str]