Help controlling humidity with internal and external sensors

Hi there.

My house tends to suffer, a bit with condensation and so I really like to try and keep it at 60% or below whenever possible.

During the winter months, I use a dehumidifier. However, when March comes round, I tend to use my windows.

I am trying to think of a clever way of using HA to prompt me to do this.

I was thinking of buying a couple of humidity sensors for inside my house and one for outside.

Would the following work?

  1. If the indoor sensor goes above 60, look at the outside one and if this is below the outside reading, announce for windows to be opened.

  2. If the internal reading goes below 60 OR if the internal is above 60 but the external is even higher, announce for windows to be closed.