I can't access the links from work. but no reason you can't combine the two. Helps if you learn what you're doing instead of copy and pasting. break it down into the two tasks and get a handle on them: opening/closing the shutter at will from your arduino code; reading the rain sensor, finding a suitable value to determine "dry" from "damp" then you simply read and compare (if/then sort of thing) to activate shutter.
But also comprehend what the sensor is doing and the consequences. and of course I'd use at least six of them. plus I'd be testing for dewpoint conditions. start simple, learn then expand to something feasible.
|