Datasheet

Normally, sitting on a table, you'll see X and Y are close to 0 and Z will be about ~1 m/s^2 because the accelerometer
is measuring the force of gravity! (My table is a bit tilted so Y is closer to 0.2 m/s^2.
You can also move around the board to measure your movements and also try tilting it to see how the gravity 'force'
appears at different axes.
Not that you'll see there's
two
sets of data!
Accelerometer ranges
Accelerometeres don't 'naturally' spit out a "meters per second squared" value. Instead, they give you a raw value. In
this sensor's case, its a number ranging from -32768 and 32767 (a full 16-bit range). Depending on the sensor range,
this number scales between the min and max of the range. E.g. if the accelerometer is set to +-2g then 32767 is +2g of
force, and -32768 is -2g. If the range is set to +-16g, then those two number correlate to +16g and -16g respectively. So
knowing the range is key to deciphering the data!
You can set, and get the range with:
In the first line, you can use LIS3DH_RANGE_2_G, LIS3DH_RANGE_4_G, LIS3DH_RANGE_8_G,
lis.setRange(LIS3DH_RANGE_4_G); // 2, 4, 8 or 16 G!
Serial.print("Range = "); Serial.print(2 << lis.getRange());
© Adafruit Industries https://learn.adafruit.com/adafruit-lis3dh-triple-axis-accelerometer-breakout Page 16 of 22