Skip to content
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 1.4 Beta

    Announcements 1.4beta help
    129
    0 Votes
    129 Posts
    124k Views
    RJ_MakeR
    Not very nice but I think this will work.. //float temperature = dht.getTemperature(); float temperature = dht.getTemperature()*9/5 + 32; if (isnan(temperature)) { Serial.println("Failed reading temperature from DHT"); } else if (temperature != lastTemp) { lastTemp = temperature; if (!metric) { temperature = dht.getTemperature()*9/5 + 32; //dht.toFahrenheit(temperature); }

21

Online

12.4k

Users

11.2k

Topics

113.5k

Posts