'Initialize the sensor.'

def __init__(self, sensor_type, charger):

    self._name = SENSOR_TYPES[sensor_type][0]
    self.type = sensor_type
    self._state = None
    self.charger = charger
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
