License: Copyright 2015 Aaron Magill, MIT License
Measure acceleration in terms of g (acceleration due to earth's gravity). Returns value that represents the milli G's acting on the axis.
A simple Wrapper for the MX2125 Library by Aaron Magill
Measure the level of tilt in terms of +/- 90 degrees. 0 degrees is when the top surface of the accelerometer chip is parallel to the ground.
Measure clockwise rotation assuming accelerometer is held vertical. Zero degree rotation is when the triangle on the MX2125 chip is pointing up.
Returns floating point number of the temperature in Celsius as reported by the MX2125 chip. The formula used is calculated for use with the ADC bit width of an Arduino UNO and will need to be changed if your model is different. Note that this seems to fluctuate quite a bit, but should give an idea as to the approximate operating temperature...