A sprinkler is a device used for the distribution of water from plumbing pipes, by spraying it into the air. Sprinklers have two main purposes: