'Initialize the sensor.'

def __init__(self, data, sensor_types):

    self.data = data
    self._name = SENSOR_TYPES[sensor_types][0]
    self._unit_of_measurement = SENSOR_TYPES[sensor_types][1]
    self.type = sensor_types
    self._state = None
