In the first part of this section we will see the basic circuit and get the raw data. In the second we will calibrate the sensor and get the acceleration in g or in SI units if you want.
Basic Arduino code
When you upload the code, you will get the raw values from the sensor.
These values are proportional to the acceleration along the three axis. Check out the next section to convert the raw data to real acceleration data!