Hello,
Thank you for contacting us
First, a measure of compensated counts must be converted into common units and then convert to the unit of your choice, please see AN13614 NTM88 Sensor Measurements section 1.5 Converting compensated measurements into common units.
I am afraid we do not have an example code for reference
Hope this helps