Sensirion / arduino-i2c-sht4x

Arduino library for Sensirion SHT4x sensors
BSD 3-Clause "New" or "Revised" License
13 stars 5 forks source link

Incompatibility Issue #5

Closed DiSkyMaster closed 4 months ago

DiSkyMaster commented 6 months ago

I am currently undertaking a project involving the integration of the SHT40I-AD1B-R2 temperature sensor with an ESP32 C3 Mini, as depicted in the attached image. I am employing the Sensirion Arduino-I2C-SHT4x library to facilitate this integration. Unfortunately, I have encountered a significant issue where the library fails to read the data from the sensor, specifically, it does not detect or recognize the SHT sensor. The system consistently returns an error message.

Given this context, I would greatly appreciate any guidance or recommendations you might have regarding this problem. Could there be specific configurations or aspects of the SHT40I that are not compatible with your library? Any insights or potential solutions to enable successful communication between the sensor and the microcontroller would be immensely helpful.

Thank you for your assistance.

image

sdmueller commented 5 months ago

Hi @DiSkyMaster

The library should be compatible with the SHT40I.

Did you draw the schematic with the pins corresponding to their physical location? Because then your pin assignment looks off. SDA should be opposite from VSS and SCL should be opposite from VDD.

See excerpt from the datasheet: image

Can you double check if you have the correct pin assignment?