enjoyneering / HTU21D

This is an Arduino library for HTU21D, Si7021 and SHT21 Digital Humidity & Temperature Sensor
55 stars 15 forks source link

Fails with SHT21 #7

Closed fink42 closed 5 years ago

fink42 commented 5 years ago

Hello

I am using the Wemos D1 mini Pro and a SHT21 sensor (identical to this one:).

I have connected the SDA from the sensor to D2 on the board and SCL from the sensor to D1 on the board. But all I'm getting is: "HTU21D, SHT21 sensor is faild or not connected", when I run the HTU21D_Demo.

When I run I2C scanner (link) it finds an I2C device at address 0x40 and nothing when I remove the sensor. So I guess the sensor is wired up correctly and there might be something else I am doing wrong/missing.

Hope you are able and willing to help me

enjoyneering commented 5 years ago

Hi,

try to replace while (myHTU21D.begin() != true) in HTU21D_Demo.ino with while (myHTU21D.begin(D2, D1) != true)