'Initialize the sensor.'

def __init__(self, data, sensor_type):

    self._data = data
    self.type = sensor_type
    self._name = (SENSOR_PREFIX + SENSOR_TYPES[sensor_type][0])
    self._unit = SENSOR_TYPES[sensor_type][1]
    self._inferred_unit = None
    self._state = None
