def METHOD_NAME(self):
    if self.timer_loop > time.time():
        return
    while self.timer_loop < time.time():
        self.timer_loop += self.period
    measurements = []
    for each_id_set in self.select_measurement:
        device_device_id = each_id_set.split(",")[0]
        device_measure_id = each_id_set.split(",")[1]
        device_measurement = get_measurement(device_measure_id)
        if not device_measurement:
            self.logger.error("Could not find Device Measurement")
            return
        conversion = db_retrieve_table_daemon(
            Conversion, unique_id=device_measurement.conversion_id)
        channel, unit, measurement = return_measurement_info(
            device_measurement, conversion)
        self.logger.debug("Dev: {}, unit: {}, channel: {}, measurement: {}, max age:; {}".format(
            device_device_id,
            unit,
            channel,
            measurement,
            self.max_measure_age))
        last_measurement = read_influxdb_single(
            device_device_id,
            unit,
            channel,
            measure=measurement,
            duration_sec=self.max_measure_age,
            value='LAST')
        self.logger.debug("last_measurement: {}".format(last_measurement))
        if not last_measurement:
            self.logger.error(
                "One more more measurements were not within the set Max Age. Not calculating average.")
            return False
        else:
            measurements.append(last_measurement[1])
    average = float(sum(measurements) / float(len(measurements)))
    measurement_dict = {
        0: {
            'measurement': self.channels_measurement[0].measurement,
            'unit': self.channels_measurement[0].unit,
            'value': average
        }
    }
    if measurement_dict:
        self.logger.debug(
            "Adding measurements to InfluxDB with ID {}: {}".format(
                self.unique_id, measurement_dict))
        add_measurements_influxdb(self.unique_id, measurement_dict)
    else:
        self.logger.debug(
            "No measurements to add to InfluxDB with ID {}".format(
                self.unique_id))