Trouble triggering def someEvent(evt) function

@rayzurbock has a custom smartapp that uses a humidity sensor to track trends so it can guess whether someone is taking a shower. Might be of interest.