I2C sht31 install

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

I2C sht31 install

Post by alexvanuxem »

Hi

i connected a external I2c sht31 to a MBpro2.

I see it information tab as sht31ext.

how to get readings from it?

thx

alex
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

What does "Monitoring - Live Data" tab tell?
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

Re: I2C sht31 install

Post by alexvanuxem »

Hi,

Nothing extra. My usual stations, and the data from the MB pro 2 itself, under station 9 (internal storage, uptime, internal temp and humidity, pressure,...), but an extra temp or humidity.....

thanks
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

PRO2 takes it as a replacement for the internal sensor that does not show true indoor data because being in a heated up environment. So temp and humidity of thb0 are now the values from this external sensor.

Did you plan to use it as a more accurate indoor sensor replacement, or something else?
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

Re: I2C sht31 install

Post by alexvanuxem »

the system temperature stays the same when plugging the sht31 external one, even after rebooting.

one good thing: at first the MBpro2 was connected through lan, > no RF firmware update available

i changed it to wifi and then I could flash the RF firmware (but stays at FW 3.5?).

just letting you know

i want to use the I2C bus for calibrating temp hum and pressure with all my installed sensors right next to it (WLL, vantage with uwb logger, ecowitt)
thx

a
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

alexvanuxem wrote: Thu Jun 05, 2025 7:47 pm i changed it to wifi and then I could flash the RF firmware (but stays at FW 3.5?).
There is no RF firmware 3.5. You see RF firmware version in "System - Logging" when using the RF function.
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

Re: I2C sht31 install

Post by alexvanuxem »

sorry my mistake,

can you explain why the internal temperature stays at +/- 33°c after attaching the sht31 module?

It should display a ambient temp of +/- 22°c or something, right?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

you need to do a reboot after installing the module. Can you please send output of

Code: Select all

http://ip-of-your-meteobridge/cgi-bin/system.cgi?cat%20/var/run/i2cdata
On a regular PRO2 it looks like this

Code: Select all

DATE 1749203446
SHT31INT 38.4 22
BMP390 1000.9 37.6
INA220 5.09 312 1.59
DEVICES 50
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

Re: I2C sht31 install

Post by alexvanuxem »

command: cat /var/run/i2cdata
-------------
DATE 1749225665
SHT31INT 34.5 25
SHT31EXT 27.0 42
BMP390 1009.5 33.7
INA220 5.22 270 1.41
DEVICES 54
-------------
Schermafbeelding 2025-06-06 180043.png
Schermafbeelding 2025-06-06 180043.png (93.79 KiB) Viewed 2444 times
I need to see 27.0°C and 42% humidity under system#9 correct?

Grtz

A
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

alexvanuxem wrote: Fri Jun 06, 2025 6:03 pm I need to see 27.0°C and 42% humidity under system#9 correct?
Yes, that is what I would expect to see. But your example does show different. I will check.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

just released SW version should add a "th9" to system station to represent the external SHT31 data. please give it a try.
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

Re: I2C sht31 install

Post by alexvanuxem »

HI

Thanks! it works! I guess it will work with any type I2C temp/huymidity sensor?

I will use this IC2C sensors to try to calibrate my weather stations.

If a pressure sensor would be attached, any type, you will need to add again an additional sensor ?

thx

alex
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: I2C sht31 install

Post by admin »

currently just this external sensor is supported. As the PRO2 has a high quality BMP390 sensor inside, you should be fine on exact pressure data.
alexvanuxem
Junior Boarder
Junior Boarder
Posts: 27
Joined: Mon Jun 06, 2022 6:55 pm

Re: I2C sht31 install

Post by alexvanuxem »

too bad,

:-)

it should be nice to just attach whatever i2c sensor to fully exploit this feature,

thank you for the support !!!!!!!
Post Reply