My bad
Didn’t test the DHT enough. Will fix it tommorow. For now : loop for this part in the INO file
void loop (void)
{
if (millis() - ds18b20_lastInterval > ds18b20_sendInterval && DS18B20Enabled == "1")
{
String temp = get_ds18b20();
String ds18b20_var = HandleEeprom(ds18b20var_Address, "read");
send_data(temp, ds18b20_var);
ds18b20_lastInterval = millis();
}
if (millis() - dht_lastInterval > dht_sendInterval && DHTEnabled == "1")
{
String dhttemp_var = HandleEeprom(dhttempvar_Address, "read");
String dhtTempHum = get_dht();
int commaIndex = dhtTempHum.indexOf(",");
int secondCommaIndex = dhtTempHum.indexOf(",", commaIndex+1);
String dht_temp = dhtTempHum.substring(0, commaIndex);
String dht_hum = dhtTempHum.substring(commaIndex+1, secondCommaIndex);
if(dht_temp != "nan")
{
send_data(dht_temp, dhttemp_var);
}
dht_lastInterval = millis();
}
server.handleClient();
}
Lookup the line : send_data(dht_temp, dhttemp_var);
Add an extra line:
send_data(dht_hum, dhthum_var);
recompile and flash, should be sending humidity now
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm