|
Post by pdkwork on Dec 15, 2020 16:48:50 GMT -8
I have the ESP32 based WeatherRack which came with the SHT30 outside air temp/humidity sensor. I also have the WxLink and I would like to connect the SHT30 to the WxLink Tx board. I did connect it but the software expected a different sensor. I took the SHT30 program from the ESP WeatherRack and added the files to the Tx code found on Github. I added code to look for the SHT30 in the loop section:
if (SHT30_Present) {
Serial.print(F("Outside Temperature (C): ")); Serial.println(sht30.cTemp);
Serial.print(F("Outside Humidity (%RH): ")); Serial.println(sht30.humidity);
OutsideTemperature = sht30.cTemp;
OutsideHumidity = sht30.humidity;
} else {
Serial.println(F("SHT30 not found"));
}
On the Serial monitor I can see the temperature in deg C and humidity.
What is received on the WeatherRack and shown on the serial monitor is:
Outside Temperature=44930.00
OT Hex=1822F47
Outside Humidity=25700.00
I must have messed up the code but I am not sure how to integrate the SHT30. I thought this code would work.
|
|
|
Post by pdkwork on Dec 16, 2020 7:39:45 GMT -8
I figured it out. I can use SHT30 with the WxLink. My code did work but the sensor needed to be reset.
|
|