         description: "The measured temperature"
         type: t.number
         unit: '°C'
+      humidity:
+        description: "The actual degree of Humidity"
+        type: "number"
+        unit: '%'
        
     template: "temperature"	  
 	  


    requestValue: ->
      @sensor.readTemperature( (value) =>
        #if value isnt @_temperature
          @_temperature = value
          @emit 'temperature', value
        #else
        #  env.logger.debug("Sensor value (#{value}) did not change.")
      #).catch( (error) =>
      #  env.logger.error(
      #    "Error reading HDC1008Sensor with address #{@config.address}: #{error.message}"
      #  )
      #  env.logger.debug(error.stack)
      )

    getTemperature: -> Promise.resolve(@_temperature)

  # Create a instance and return it to the framework
  myPlugin = new HDC1008Plugin
  return myPlugin														
      @id = @config.id
      @name = @config.name
      @_temperature = lastState?.temperature?.value
      @_humidity = lastState?.humidity?.value
      HDC1008 = require 'hdc1008'
      @sensor = new HDC1008({
        address: parseInt @config.address,
        device: @config.device,
        commandTemp: 0x00,
        lengthTemp: 2,
        commandHumi: 0x01,
        lengthHumi: 2
      });
      Promise.promisifyAll(@sensor)

      super()
