No readings from SHT30 after wake from sleep

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);

}

After you come out of sleep mode, or even after you’ve just turned on the external power (Vext) (after having been off), you usually need to do everything you would normally do to initialise any sensor. So, in your sketch above, I think you probably need something like:

Wire.begin();
Sensor.Begin();

before you try to read the sensor. And, if you want to make it clear what state things are in, you could probably shut down the Wire interface

Wire.end();

after reading the sensor and before turning off Vext and/or going back to sleep.

This, at least, is the procedure I follow when reading a BME280 sensor under similar circumstances.

Thank you,

adding

SHT3x Sensor;
at the start of onWake()
and Wire.end ();
before Off Vext . solved it . Thanks again.