Control logic for my sprinkler system