added moisture sensor code