Controls the temperature and the flow of the water are two basic functions of a…