Hello
The output of the compensation routines is a value in counts, specified in the datasheet. The formula to convert the compensated sensor value in counts into a value in common units (kPa for pressure, g for acceleration, volt for voltage and °C for temperature) is indicated in the datasheet. Refer to the appropriate datasheet as all part numbers have different sensor characteristics (offset and sensitivity), giving different conversion formulas.

For example:
The example was done with a FXTH8715xx device (similar NTM88) in the range 100 – 1500kPa, using the FXTH871x6 datasheet.
Pressure:
Compensated pressure value received: Pressure = 1.
The pressure in kPa can be calculated with the Eqn. 1 on page 80: P = ΔP1500 * PCODE + (100 - ΔP1500 )
We have PCODE = 1, it is the compensated value given by the module. Then in the table on page 155 of the datasheet we find that ΔP1500 = 2.750 kPa/count.
So we have P = 2.750*1 + (100 – 2.750) = 100kPa
AccelZ and AccelX
AccelZ = 264, measured at offset step 6.
▪ In order to find the value in g of the Z-axis acceleration, we need to know the offset step of the acceleration measure. As the Z-axis acceleration goes from -210g to 300g (FXTH870x11 family) the range has been divided into 16 ‘windows’ or steps, and each step has been divided into 510 counts. So we always get an acceleration value between 1 and 510 counts, but depending on the offset step, that does not correspond to the same actual acceleration.
In our case the offset step is step 6 so acceleration is between -30g and 30g (refer to the datasheet).
▪ Then we also need to know some acceleration measurement characteristics of the device that are given in the datasheet (in this example in section 17.10.2 on page 157):
- - Z-axis Average Accel Sensitivity (1 to 510 counts) = 0.118g/count (here we use the average sensitivity but it can be calculated more precisely for each step, refer to the datasheet).
- AZ-6 @ AZCODE1 = -30g
Now we can apply the Eqn. 17 on page 156 : AZ = ΔAZ6 * AZCODE + (AZ6 @AZCODE1 - ΔAZ6 )
We have ΔAZ6 = 0.118g/count, AZCODE = 264 (the compensated acceleration value given by the module) and AZ6 @AZCODE1 = -30g
So we get AZ = 0.118*264 + (-30 – 0.118) = 1.034g
Hope this helps.