A control algorithm used in maintaining a target temperature with digital thermostats in modern brewing equipment