'Initialize the sensor.'

def __init__(self, rest, name, sensor_type):

    self.rest = rest
    self._name = name
    self.type = sensor_type
    self._state = STATE_UNKNOWN
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
