The fire sprinkler system is an automatic system designed to activate when there is a fire threat to minimize any…