'Initialize the sensor.'

def __init__(self, sensor_name, sensor_type, sensor_index):

    self._name = '{}    {}'.format(sensor_name, SENSOR_TYPES[sensor_type][0])
    self.sensor_name = sensor_name
    self.type = sensor_type
    self.index = sensor_index
    self._state = None
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
