Hi all
I want to configure 3 SHT21 sensors, the problem is that each, has same address.
Whit DFRobot_SHT20 library works fine, but all lib are designed for just on two ESP32 pins.
I can duplicate the library 3 times, but should be a better opcion, do you can help me.
now whit one sensor
Time:961621 Temperature:32.2C Humidity:21.2%
Time:962721 Temperature:32.2C Humidity:21.2%
Time:963821 Temperature:32.2C Humidity:21.2%
Time:964921 Temperature:32.2C Humidity:21.2%
Time:966021 Temperature:32.2C Humidity:21.2%
I modify ths lib to manually insert ths wire pin
void DFRobot_SHT20::initSHT20(TwoWire &wirePort)
{
i2cPort = &wirePort;
//i2cPort->begin(D4,D5);
i2cPort->begin(27,25);
}
Plesase I need help.
How to configure 3 SHT21 sensor
Re: How to configure 3 SHT21 sensor
Hi, the solution is simple add a I2C extender chip
Problem solved
Problem solved
Who is online
Users browsing this forum: Bing [Bot] and 69 guests