i just want a simple and utility algorithm,for example with conditional causes:

IF (real_temp)<((temp_value)-1) then

turn on heaters
............
............
ENDIF

for controlling, i have 8 fans,2 heaters and there is a pad on one side of the aviculture and greenhouse that i can control the water with valve that pour on the pad and big fans (2.5Kwatt) on the other side of the saloon pull the air and adjust temperature and humidity of the saloon.the saloon approximately has 20 meter width and 75 meter length.
i should exert a margin for temperature and humidity to avoid frequently turning on and off ,fans and heaters.for example if the favorite value is 29C', i should use (29-1) and (29+1) in my algorithm,are you agree with me?