'Get the latest data the DHT sensor.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    (humidity, temperature) = self.adafruit_dht.read_retry(self.sensor, self.pin)
    if temperature:
        self.data[SENSOR_TEMPERATURE] = temperature
    if humidity:
        self.data[SENSOR_HUMIDITY] = humidity
