The driver assembles the 24-bit pressure response and divides by 4,096 for hectopascals. Preserve byte order and the pressure channel identity before scaling. The chart shows the result for representative valid atmospheric pressure words. With raw pressure result at 4,096,000, the worked result is 1,000 on the pressure (hpa) scale.

The recorded quantity and the calculated result

Keep three columns in a commissioning export: the original raw pressure result, the configuration used in the conversion and the resulting pressure (hpa). Recompute the result for the lower, middle and upper worked points before interpreting a field difference. A change in range, units or representation can otherwise be mistaken for a change in the process.

Two points to check independently

Take the neighbouring worked points 4,014,080 and 4,096,000 on the input axis. The results are 980 and 1,000, giving a signed difference of 20. The table preserves the calculated values before display rounding. These are calculated examples under the stated assumptions. They are not readings from a ProSense installation.

LPS22HB pressure count scaling. Raw pressure result changes from 3,686,400 to 4,300,800 and the calculated Pressure (hPa) changes from 900 to 1,050.
LPS22HB pressure count scaling. Raw pressure result changes from 3,686,400 to 4,300,800 and the calculated Pressure (hPa) changes from 900 to 1,050. Figure by Industry Applied.

Worked data

Raw pressure result

Pressure (hPa)

3686400

900

3891200

950

4014080

980

4096000

1000

4157440

1015

4300800

1050

Checking the ends of the working range

The final interval in this example runs from 4,096,000 to 4,300,800 on the raw pressure result axis. Its average change in pressure (hpa) per input unit is 0.000244. This is a two-point slope for that interval. To check a spreadsheet or a gateway calculation, enter 4,300,800 in a separate test row and compare its result against 1,050 at the displayed precision.

Installation and interpretation

Pressure can be reported as local station pressure or reduced to another reference elevation downstream. Label that processing separately. Agreement on digital scale does not remove reference-height differences between two monitoring stations.

For a repeatable verification, capture a small known case and a second case well away from it. Check whether the difference follows the response in the table, then restore the working configuration and repeat one reading. Store a separate status field for missing or invalid input. Substituting zero would make a dropped observation indistinguishable from a legitimate numerical zero.

Implementation and worked data

The source implementation is maintained in the .NET IoT device project. The component notes and manufacturer references document the supported device and its interfaces. Download the worked numerical example.