float DewPointDegC(void){ int8_t temperature = (int8_t) BME280_getTemperature(); //Current room temperature in Degrees Celsius int8_t humidity = (int8_t) BME280_getHumidity(); // Humidity in %RH float dewPoint = 0; dewPoint = 243.04 * (log(humidity/100.0) + ((17.625*temperature)/(243.04 + temperature)))/(17.625 - log(humidity/100.0) - ((17.625 * temperature)/(243.04 + temperature))); return dewPoint; }