'Initialize the sensor.'

def __init__(self, netatmo_data, module_name, sensor_type):

    self._name = 'Netatmo    {}    {}'.format(module_name, SENSOR_TYPES[sensor_type][0])
    self.netatmo_data = netatmo_data
    self.module_name = module_name
    self.type = sensor_type
    self._state = None
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
    module_id = self.netatmo_data.station_data.moduleByName(module=module_name)['_id']
    self.module_id = module_id[1]
    self._unique_id = 'Netatmo    Sensor    {0}    -    {1}    ({2})'.format(self._name, module_id, self.type)
