[...] an accelerometer at rest on the surface of the Earth will measure an acceleration due to Earth's gravity, straight upwards3 of g ≈ 9.81 m/s2. By contrast, accelerometers in free fall (falling toward the center of the Earth at a rate of about 9.81 m/s2) will measure zero.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wikipedia first paragraph on accelerometers:
https://en.m.wikipedia.org/wiki/Accelerometer