You right, sensor reads HIGH when it is dry.
I changed the code, now it works the way I wanted (it looks terrible but it works). I didn’t use watchdog, I don’t think it’s necessary for my schema.
Thank you very much for your help! Now I have a little more understanding of how to program with XOD.