'Initialize the sensor.'

def __init__(self, dht_client, sensor_type, temp_unit, name, temperature_offset, humidity_offset):

    self.client_name = name
    self._name = SENSOR_TYPES[sensor_type][0]
    self.dht_client = dht_client
    self.temp_unit = temp_unit
    self.type = sensor_type
    self.temperature_offset = temperature_offset
    self.humidity_offset = humidity_offset
    self._state = None
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
