6-digit pressure meusurement

When I use the Weaterbit the pressure measurement returns 6 digits instead of eight. Consequently, the pressure is incorrect upon dividing på 25600. This happens when using my own code. When I use your coding example from the turorial on the website, things seems to be fine.
Any thoughts on the reason(s) for this?
BR, Morten, Copenhagen, Denmark

That means the hardware is OK. You need to troubleshoot the code that you have written.

Thanks for the reply. Yeah, you’re right. I’ve tried to simplify the code. I “start weather monitoring” and “show number”. Still gets it wrong. Temperature og humidity is working fine… I’m losing my mind.

Could be a few things

Whatever register/buffer you are saving the measurement to needs to be assigned/use more bits
Ensure you aren’t accidentally modifying the value when using
Ensure there aren’t decimals being truncated
Make sure units and such match

Read the raw value after parsing to test whether you are parsing it correctly

Thanks, I’m using the datalogger extension. I’m not an expert, but I’ll see if I can figure something out.