What should be installed in the supply pipe to prevent malfunctions in the sprinkler systems, when a raw water source is used.

What should be installed in the supply pipe to prevent malfunctions in the sprinkler systems, when a raw water source is used.