[Release] HubDuino v1.1.9 - Hubitat to Arduino / ESP8266 / ESP32 / ThingShield Integration (ST_Anything)

I'm having the same problem reported by @kuzenkohome a while back, the humidity sensor of a BME280 stop to update (temp and pressure works fine) with error:

java.lang.NumberFormatException: For input string: "nan" on line 60 (method parse)

rebooting the esp restore the updating. In my case it happens every 4/6 days. I've changed the BME280 two times but the problem it's still there. Is there anything else I can check?


I just saw this topic

@kuzenkohome commenting out this section in Adafruit library code solved the problem?

/*!
 *  @brief  Returns the humidity from the sensor
 *  @returns the humidity value read from the device
 */
float Adafruit_BME280::readHumidity(void) {
  readTemperature(); // must be done first to get t_fine

  int32_t adc_H = read16(BME280_REGISTER_HUMIDDATA);
  if (adc_H == 0x8000) // value in case humidity measurement was disabled
    return NAN;