DEW point using DHT22 sensor

You can add this function to calculate the dewpoint:

float calcDewpoint(float humi, float temp) {
  float k;
  k = log(humi/100) + (17.62 * temp) / (243.12 + temp);
  return 243.12 * k / (17.62 - k);
}
2 Likes