The fix worked for the accelerometer values, as I just had to change int to int16_t, but for the altitude it is defined as a float in the code as well as in the library. Unfortunately now the altitude reading is positive and I can't go lower than ground surface, but do you believe simply changing all the "float" types in the library as well as for the altitude parameter in the code to "double" could fix it? Thank you in advance.