I am using include #include “SHT3x.h” version as i could not get Adafruit version to work at all. I get temperature and humidity on first awake loop. But after awaking from sleep. temperature and humidity are zero.
I suspected Wire or something is suspended . But added begin.wire to SHT30() routine , no joy. Anyone know what i need to do to wake out of sleep properly?
#include “SHT3x.h”
SHT3x Sensor;
void SHT30() {
// Vext ON
digitalWrite(Vext, LOW);
delay(50);
Sensor.UpdateData();
Temp=Sensor.GetTemperature();
if (debug==true){
Serial.print("Temperature: ");
Serial.print(Temp);
Serial.write("\xC2\xB0"); //The Degree symbol
Serial.println(“C”);
}
Humid=Sensor.GetRelHumidity();
if (debug==true){
Serial.print("Humidity : ");
Serial.print(Humid);
Serial.println("%");
}
// Vext OFF
digitalWrite(Vext, HIGH);
}