FAQ

can i use it in a project for 24/7 ,and if so what will be it; life expectancy ?

userHead JaneYu 2018-03-08 16:16:01 25 Views33 Replies

can i use it in a project for 24/7 ,and if so what will be it; life expectancy ?

2024-06-03 13:38:23

Unfortunately we have not tested SHT20 compatibility with Adafruit, perhaps you can test it with ADS1115.

userHeadPic JaneYu
2024-04-17 19:22:59

Hi,
We're having some troubles with this sensor since it's returning the error "[Wire.cpp:513] requestFrom(): i2cRead returned Error 263" even if temp and humidity values are read correctly.
We are using ADS1115 as i2C converter.

In the serial monitor we see that error before the line with the actual reading :
[ 3053][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263
temperature: 23.57C
[ 4074][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263
humidity: 39.30%
[ 5095][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263
temperature: 23.57C
[ 6116][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263
humidity: 39.30%

Also, we bought 2 of them and both are having the same issue.

This is our main code:
#include <arduino.h>
#include <dfrobot_sht20.h>
#include <wire.h>

#define I2C_SDA_PIN 21
#define I2C_SCL_PIN 22

TwoWire SHT20_I2CBus = TwoWire(0);
DFRobot_SHT20 sht20;

void setup() {
Serial.begin(115200);
// initialize the I2C bus
if(!SHT20_I2CBus.begin(I2C_SDA_PIN, I2C_SCL_PIN, 100000)){
Serial.println("SHT20 begin fail");
while(1);
}

// initialize the SHT20 sensor
sht20 = DFRobot_SHT20(&SHT20_I2CBus, 0x40);
sht20.initSHT20();

// wait for the sensor to be stable
delay(1000);

// display the current status of the SHT20
sht20.checkSHT20();
}

void loop() {
static uint64_t time = millis();

if(millis() - time > 1000) {
time = millis();
// read the temperature and humidity value
Serial.println("temperature: " + String(sht20.readTemperature()) + "C");
Serial.println("humidity: " + String(sht20.readHumidity()) + "%");
}
}

What are we doing wrong?
Thanks!
Arianna

userHeadPic JaneYu
2023-11-06 16:33:01

The I2C address for this sensor is 0x40.

userHeadPic JaneYu
JaneYu wrote:

thanks a lot, where to find the addresses of your sensors in website ?
i have also SEN0546 and SEN0343

2023-11-06 16:37:31
1 Replies
2023-07-10 21:47:48

Hello,

The sensor is waterproof. But how easy is it to clean? I want to use it in a kitchenhood (greasy environment).

Thanks in advance!

userHeadPic JaneYu
JaneYu wrote:

The sensor case is made of plastic. You can clean the sensor with alcohol, it can be used in the greasy environment of the kitchen

2023-07-26 11:34:30
1 Replies
2023-06-06 00:46:41

can you recommend temperature sensor that can be used for seawater for long duration of time

userHeadPic JaneYu
JaneYu wrote:

You could take a look at our DS18B20 sensor, which has the stainless steel probe.
https://www.dfrobot.com/pro...

2023-06-28 10:50:19
1 Replies
2023-01-03 13:30:57

Hi, The T/H sensor does not have the coverage range.

userHeadPic JaneYu
2021-09-12 01:53:01

Hi,

So do I connect it directly to 5V VCC? Or does it need 3.3V ?

userHeadPic JaneYu
JaneYu wrote:

Hi,

You can use either 3.3V or 5V

2021-09-30 16:08:56
1 Replies
2021-02-13 21:24:25

HI, the diagram on the wiki shows the sensor connected directly to the Arduino 5V and the SDA and SCL pins, however the code on the wiki says in the comments to connect to 3.3v and to use 300ohm resistors inline with the SDA and SCL.

Can you confirm which is correct - the wiring diagram or the code?

/*!
* @file DFRobot_SHT20_test.ino
* @brief DFRobot's SHT20 Humidity And Temperature Sensor Module
* @n This example demonstrates how to read the user registers to display resolution and other settings.
* Uses the SHT20 library to display the current humidity and temperature.
* Open serial monitor at 9600 baud to see readings.
* Errors 998 if not sensor is detected. Error 999 if CRC is bad.
* Hardware Connections:
* -VCC = 3.3V
* -GND = GND
* -SDA = A4 (use inline 330 ohm resistor if your board is 5V)
* -SCL = A5 (use inline 330 ohm resistor if your board is 5V)
*/

Wiring Diagram Wiki

userHeadPic JaneYu
2021-01-14 08:07:54

What size is the threaded connection? I need to make an adapter to replace the metal part.

userHeadPic JaneYu
2020-11-18 01:26:52

Is it possible to add some additional wiring so that the probe is farther from the raspberry pi device that it is connected to? Maybe 70 feet in distance? What is the maximum distance that can work and what wire gauge would facilitate that?

userHeadPic JaneYu
2020-11-13 13:48:33

HI Bailey,

Your assumption is right. However, we cannot guarantee anything since it hasn't been tested on TI MSP430.

userHeadPic JaneYu
2020-10-24 03:42:05

Is this sensor in any libraries for Autodesk EAGLE?

userHeadPic JaneYu
2019-09-20 07:45:08

I bought a couple of these sensors and the probes are no where near waterproof level. I tested the probe by dipping it in a cup of water, in 3-4 seconds, probe got flooded. There was no means of blocking water in the connection between coupling, probe case, and the strain relief, so I had to wrap my own Teflon tape to seal the gaps. I used RTV sealant to seal the probe cap, and now it is somewhat waterproofed. SHT20 sensor itself is performing very well though.

userHeadPic JaneYu
2019-09-19 18:55:58

Awesome product, just one question: Has this I2C Device an unique address? I mean, how many devices could I connect if I only have one I2C bus ? Thanks you in advace !

userHeadPic JaneYu
JaneYu wrote:

Simon answer is correct, however you can add an i2c multiplexer as a workaround to use multiple same address i2c devices. You can find this product located here: https://www.dfrobot.com/pro... . If just using a single multiplexer, you can connect up to 8 same address devices!

2019-09-20 09:44:36
1 Replies
2019-07-21 23:53:24

Is this suitable for a high pressure environment? I'd like to read temp and humidity inside an air tank at 150psi.

userHeadPic JaneYu
2019-01-20 02:53:59

I am trying to send the signal over 3 meters of cable and it still sends me nonsense readings. Surely 3 meters is not to far. I am using the same gauge wire. What is going on?

userHeadPic JaneYu
2018-10-12 00:30:23

Trying to use SHT20 with C232HM MPSSE cable and LabVIEW. I keep cutting an error at the "Device Write" sub VI. Has anyone successfully accomplished communication with similar setup?

userHeadPic JaneYu
2018-08-28 09:11:17

I need to monitor temperature and humidity in cold storage chambers with readings taken every 5 seconds. Can this be used along with Raspberry Pi?

userHeadPic JaneYu
JaneYu wrote:

Yes, this sensor is controlled through I2C, you can use along with Raspberry Pi.

2018-08-28 10:32:24
1 Replies
2018-08-16 08:53:42

Hello, Is it compatible with Arduino?

userHeadPic JaneYu
JaneYu wrote:

Yes, it is. The wiring diagram, sample code are all available. Please refer the wiki on this page.

2018-08-16 15:53:34
1 Replies
2018-08-09 03:16:06

Hello, how can I connect more than 1 sensor to the same arduino?

userHeadPic JaneYu