The SparkFun ADXL313 Breakout is a low power, high resolution (up to 13-bits) 3-axis accelerometer for measurement up to ±4g. This breakout measures the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion or shock. Digital output data is formatted as 16-bit two's complement and is accessible through the on-board Qwiic connectors (I2C) or SPI.
The ADXL313 Breakouts high resolution and low noise enable resolution of inclination changes of as little as 0.1°, while a built-in FIFO facilitates using oversampling techniques to improve resolution to as little as 0.025° of inclination.
Sparkfun has made libraries and examples for Arduino and Raspberry Pi.
Moer information is available on the website of Sparkfun.