def METHOD_NAME(self):
    """Gets the humidity and temperature"""
    self.return_dict = copy.deepcopy(measurements_dict)
    # Try twice to get measurement. This prevents an anomaly where
    # the first measurement fails if the sensor has just been powered
    # for the first time.
    for _ in range(2):
        try:
            self.logger.debug("GPIO: {}, Sensor Type: {}".format(
                self.gpio, self.sensor_type))
            [temp_temperature,
             temp_humidity] = self.grovepi.dht(self.gpio, self.sensor_type)
            self.logger.debug("Temp: {}, Hum: {}".format(
                temp_temperature, temp_humidity))
            if temp_humidity:
                temp_dew_point = calculate_dewpoint(
                    temp_temperature, temp_humidity)
                temp_vpd = calculate_vapor_pressure_deficit(
                    temp_temperature, temp_humidity)
            else:
                self.logger.error("Could not acquire measurement")
                continue
            if temp_dew_point is not None:
                if self.is_enabled(0):
                    self.value_set(0, temp_temperature)
                if self.is_enabled(1):
                    self.value_set(1, temp_humidity)
                if self.is_enabled(2):
                    self.value_set(2, temp_dew_point)
                if self.is_enabled(3):
                    self.value_set(3, temp_vpd)
                break
        except Exception as err:
            self.logger.exception("get_measurement() error: {}".format(err))
        time.sleep(2)
    return self.return_dict