Testing SHT20 sensor.
I run test with arduino mega 2560, the measurements are ok.
Currently in my room there is 17.32 degrees.
When I connect to cubecell board start reading 27.26 and after 2 minutes read 31.16.
always increasing.
Also if I only want to read temperature (I comment humidity) I get the error value for temperature -273.00.
This test pass on mega2560.
I attach proof screenshots and code.
/****************************************************************
- ReadSHT2x
- An example sketch that reads the sensor and prints the
- relative humidity to the PC’s serial port
***************************************************************/
#include <Wire.h>
#include <SHT2x.h>
void setup()
{
pinMode(Vext, OUTPUT);
Serial.begin(115200);
}
void loop()
{
digitalWrite(Vext, LOW);
delay(50);
Wire.begin();
// Serial.print("Humidity(%RH): “);
// Serial.print(SHT2x.GetHumidity());
Serial.print(” Temperature1©: ");
Serial.println(SHT2x.GetTemperature());
Wire.end();
digitalWrite(Vext, HIGH);
delay(3000);
}