I do not know a better way, I have not seen any node for that type of calculation but there are many flows and samples you may find on the net
I think I posted the code in here somewhere,,,how I do the calculation, I will have to search
Edit: I knew it, here it is
In this example I calculate the delta which is the interesting part, i.e. how many degrees you have left before condensation will happen