can i use it in a project for 24/7 ,and if so what will be it; life expectancy ?
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 ?
Unfortunately we have not tested SHT20 compatibility with Adafruit, perhaps you can test it with ADS1115.
JaneYu 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
JaneYu The I2C address for this sensor is 0x40.
JaneYu thanks a lot, where to find the addresses of your sensors in website ?
i have also SEN0546 and SEN0343
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!
JaneYu 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
can you recommend temperature sensor that can be used for seawater for long duration of time
JaneYu You could take a look at our DS18B20 sensor, which has the stainless steel probe.
https://www.dfrobot.com/pro...
Hi,
So do I connect it directly to 5V VCC? Or does it need 3.3V ?
JaneYu Hi,
You can use either 3.3V or 5V
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)
*/
JaneYu What size is the threaded connection? I need to make an adapter to replace the metal part.
JaneYu 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?
JaneYu HI Bailey,
Your assumption is right. However, we cannot guarantee anything since it hasn't been tested on TI MSP430.
JaneYu 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.
JaneYu 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 !
JaneYu 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!
Is this suitable for a high pressure environment? I'd like to read temp and humidity inside an air tank at 150psi.
JaneYu 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?
JaneYu 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?
JaneYu 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?
JaneYu Yes, this sensor is controlled through I2C, you can use along with Raspberry Pi.


