Are you actually measuring humidity, or are you measuring wetness? Humidity (in the air, noncondensing) can be reliably measured for years by a variety of commercial sensors, but it's not the same as detecting the presence of water on a surface (condensing, liquid level, etc.) PCB traces in parallel but not touching can be used to detect water droplets (easy detection does rely on water contaminants, but even trace amounts brings down the resistivity very dramatically), and they can be used to detect water concentration roughly in a medium that soaks it up (like soil.) You can capacitively detect the presence of water or liquid level too, but is again a different sensor design and consideration. To some extent, you probably can measure ambient humidity with open traces and some amount of contamination and you can probably get extra information from capacitive sensors, but those are going to be precision measurement tasks that will probably hinge on tightly controlling and characterizing other variables that will interfere with the measurement, since the meaningful measurement values will be much smaller.
The short of it: different sensor designs depending on whether you want to measure air humidity, soil humidity, or the presence of water.