def METHOD_NAME(self):
    """Gets the measurements"""
    if not self.sensor:
        self.logger.error("Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.")
        return
    self.return_dict = copy.deepcopy(measurements_dict)
    for channel, params in measurements_dict.items():
        value = None
        if channel == 11 and self.value_get(8) and self.value_get(7):
            value = calculate_dewpoint(
                self.value_get(8), self.value_get(7))
        elif channel == 12 and self.value_get(6):
            value = calculate_altitude(
                convert_from_x_to_y_unit('hPa', 'Pa', self.value_get(6)))
        elif channel == 13 and self.value_get(8) and self.value_get(7):
            value = calculate_vapor_pressure_deficit(
                self.value_get(8), self.value_get(7))
        else:
            try:
                cmd = params['command']
                cmd_write = bytearray.fromhex(cmd)
                self.sensor.flushOutput()
                self.sensor.flushInput()
                time.sleep(0.1)
                self.sensor.write(cmd_write)
                time.sleep(0.1)
                read = self.sensor.read(7)
                if len(read) > 1:
                    if cmd[12:14] == '02':
                        value = int(f'0x{read[3]:0>2x}{read[4]:0>2x}', 16)
                        if value >= (2 ** 16) / 2:
                            value -= (2 ** 16)
                    elif cmd[12:14] == '03':
                        value = int(f'0x{read[3]:0>2x}{read[4]:0>2x}{read[5]:0>2x}', 16)
                        if value >= (2 ** 24) / 2:
                            value -= (2 ** 24)
                    else:
                        value = int(f'0x{read[3]:0>2x}{read[4]:0>2x}{read[5]:0>2x}{read[6]:0>2x}', 16)
                        if value >= (2 ** 32) / 2:
                            value -= (2 ** 32)
                    value = value * params['convert']
                    value = round(value, 2)
            except Exception as err:
                self.logger.error(f"Error: {err}")
        if self.is_enabled(channel) and value is not None:
            self.value_set(channel, value)
    return self.return_dict