Reading from SHT4x (I2C) with ESP32 #9844
Unanswered
affsantos
asked this question in
Libraries & Drivers
Replies: 2 comments 4 replies
-
Just reading the Adafruit driver for this sensor it looks like you're doing the right thing. The only thing I can see different is they trigger a soft reset by sending b'\x94' before the first read. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ahhh no I see it -- You need to use bytearray(b'\xFD') (note the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to read the temperature and humidity from SHT41 sensor with a ESP32 using I2C.
So far, I can see the sensor using i2c.scan() with the correct address (0x44). I can also write to the sensor without errors (using
i2c.writeto()
) but as soon I try to read from the sensor (usingi2c.readfrom()
) then I get the following error:OSError: [Errno 19] ENODEV
Here is the code I am using (it fails when running the i2c.readfrom()):
This code returns:
Link to sensor datasheet: https://download.mikroe.com/documents/d ... asheet.pdf
Note: I found another person, in the old forum, having a similar issue but I could not find a solution for this problem.
What I tried:
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions