Page 1 of 1

SHT40

Posted: 22 Dec 2021, 18:40
by hofikhof
Please add support for sensor SHT40 I2C add 0x44 - new model temperature and humidity - to esp mega relase.
Or how I can add support this device to esp?
https://github.com/LaskaKit/Temp-HumSen ... -LPkit.ino
https://github.com/adafruit/Adafruit_SH ... it_SHT4x.h

Re: SHT40

Posted: 24 Nov 2022, 19:20
by dqqk
I have the same question: is it possible to add support for the SHT40?

The SHT40 is easier to get, cheaper, and more accurate than (the already supported) SHT3x series of sensors

Re: SHT40

Posted: 24 Nov 2022, 22:08
by Ath
I've put it on my TODO list, but that has already quite a few items on it, so no planning or ETA. And I don't currently have this sensor, so would have to obtain one first.

Re: SHT40

Posted: 25 Nov 2022, 09:03
by dqqk
Great! Thanks in advance!

Re: SHT40

Posted: 23 Apr 2023, 21:33
by Ath
hofikhof wrote: 22 Dec 2021, 18:40 Please add support for sensor SHT40 I2C add 0x44 - new model temperature and humidity - to esp mega relase.
dqqk wrote: 25 Nov 2022, 09:03 Great! Thanks in advance!
Hi guys, I've created PR #4625 to add SHT4x sensor support (SHT40/41/43/45) to ESPEasy. Tests can be done using a build from this Github Actions run. (You'll need a free Github account to be able to download)
Please test and report your findings here or in the GH Pull Request conversation

Re: SHT40

Posted: 25 May 2023, 08:53
by runningrunner72
Ath wrote: 23 Apr 2023, 21:33 Hi guys, I've created PR #4625 to add SHT4x sensor support (SHT40/41/43/45) to ESPEasy. Tests can be done using a build from this Github Actions run. (You'll need a free Github account to be able to download)
Please test and report your findings here or in the GH Pull Request conversation
Hi.

I would like to test build with SHT40 support with ESP32 and ESP8266 chips, but GitHub tells me:
"ESPEasy_mega_20230423_ESP32_PR#4625_4780034308 Expired"
"ESPEasy_mega_20230423_ESP82xx_PR#4625_4780034308 Expired"
"Documentation Expired"

Could you please resume publishing the build?

Thanx

Petr

Re: SHT40

Posted: 25 May 2023, 09:13
by TD-er
I just triggered to make a new GH Actions build for this.
Should be done in 30 - 40 mins: https://github.com/letscontrolit/ESPEas ... 5077139400

Re: SHT40

Posted: 25 May 2023, 10:27
by runningrunner72
TD-er wrote: 25 May 2023, 09:13 I just triggered to make a new GH Actions build for this.
Should be done in 30 - 40 mins: https://github.com/letscontrolit/ESPEas ... 5077139400
Quick testing done... ESP-WROOM-32 (ESP32-D0WDQ5-V3) and Wemos D1 mini (ESP8266) with SHT40 sensor with builds ESP_Easy_mega_20230525_climate_ESP32_4M316k and ESP_Easy_mega_20230525_climate_ESP8266_4M1M measure temperature and humidity at the sensor comparably to the SHT30 sensor.

P.

Re: SHT40

Posted: 25 May 2023, 11:52
by TD-er
Thanks for testing.
I just merged it, so it will be included in the next build.

Re: SHT40

Posted: 25 May 2023, 12:18
by runningrunner72
TD-er wrote: 25 May 2023, 11:52 Thanks for testing.
I just merged it, so it will be included in the next build.
Will it be included in a normal or climate build? I'd argue for normal :-)

Re: SHT40

Posted: 25 May 2023, 18:38
by epost
I use this version for the SCD40
Build: ESP_Easy_mega_20230409_collection_E_ESP8266_4M1M Apr 9 2023

Re: SHT40

Posted: 25 May 2023, 18:44
by epost
Sorry, didn't read properly. it is an SHT40 and not an SCD40.

Re: SHT40

Posted: 26 May 2023, 07:20
by runningrunner72
runningrunner72 wrote: 25 May 2023, 12:18
TD-er wrote: 25 May 2023, 11:52 Thanks for testing.
I just merged it, so it will be included in the next build.
Will it be included in a normal or climate build? I'd argue for normal :-)
Or would it be possible to compile VCC (battery voltage) measurements into the CLIMATE build (CLIMATE build with and without VCC support like other builds)?

Re: SHT40

Posted: 26 May 2023, 08:51
by Ath
The VCC builds are measuring the 3.3V supplied to the ESP, not an external voltage. And it will disable the use of the Analog Input of an ESP8266.

For an external voltage you'd better use the Analog Input (and matching plugin) of the ESP, and optionally a resistor divider to bring the external voltage to the required level (depends on your board whether it will accept the max 1V allowed by the ESP analog input or has a divider already that will allow up to 3.3V input).