If your project is need of an accelerometer, take a look at this module. On-board is an ADXL345 triple axes accelerometer with high resolution (13-bit) up to ±16 g. The digital output data is formatted as 16-bit twos complement and accessible through either a SPI or I2C.
Module supply voltage range: 4.0 V to 6 V
I/O voltage range: 1.7 V to 3.6V
Ultralow power: as low as 23 µA in measurement mode and 0.1 µA in standby mode at VS = 2.5 V (typical)
Power consumption scales automatically with bandwidth
User-selectable resolution up to 13-bit at ±16 g (maintaining 4 mg/LSB scale factor in all g ranges)
SPI (3- and 4-wire) and I2
Wide temperature range (?40°C to +85°C)