I was looking at the code for Leaf Wetness and it has variables that reference soil wetness (which is a completely different sensor)
Is the code correct aside from this incorrect variable name?
Also, what sensor are you using for Leaf Wetness? I do not see it on the site.