I can't swear this will work, and that's a very old version, but that might help.
The logic is simple. Read the sensor. Act accordingly. In my current setup, all that involves is turning a humidifer on or off.
https://github.com/stuartmayhew/TentControlVPDMonitor.git