def METHOD_NAME(self):
    import adafruit_bme680
    from adafruit_extended_bus import ExtendedI2C
    self.sensor = adafruit_bme680.Adafruit_BME680_I2C(
        ExtendedI2C(self.input_dev.i2c_bus),
        address=int(str(self.input_dev.i2c_location), 16))
    # Set oversampling settings (can be tweaked to balance accuracy and noise in data
    self.sensor.humidity_oversample = int(self.humidity_oversample)
    self.sensor.temperature_oversample = int(self.temperature_oversample)
    self.sensor.pressure_oversample = int(self.pressure_oversample)
    self.sensor.filter_size = int(self.iir_filter)
    self.sensor.sea_level_pressure = self.sea_level_pressure_ha