Controlling Dumb Humidifier Using Forecasted Outdoor Temp and Current Indoor Humidity

hello is possible to calculate relative humidity, from my two aqara sensor g/m3 I would like to have app that run my relay for fan in my basement and if is possible a tile (g/m3 and DEW point ) for dashboard.
When humidity is outside lower then inside. Like in aplication on link.

i find this link: Dew point calculator but is in Fahrenheit :confused:

i hop you can help me. Thanks