How a sprinkler solenoid valve works