def METHOD_NAME(self):
    import adafruit_adxl34x
    from adafruit_extended_bus import ExtendedI2C
    self.sensor = adafruit_adxl34x.ADXL345(
        ExtendedI2C(self.input_dev.i2c_bus),
        address=int(str(self.input_dev.i2c_location), 16))
    if self.range == '2':
        self.sensor.range = adafruit_adxl34x.Range.RANGE_2_G
    elif self.range == '4':
        self.sensor.range = adafruit_adxl34x.Range.RANGE_4_G
    elif self.range == '8':
        self.sensor.range = adafruit_adxl34x.Range.RANGE_8_G
    elif self.range == '16':
        self.sensor.range = adafruit_adxl34x.Range.RANGE_16_G