Automated sprinkler system