I am looking for examples of subroutines and how to build them.
As a newbie i have written two simple temperatured related programs that share three variables to control two relays.
b1,b2,b3
ie
if b1> b2 relay 1 goes on
if b1< b2 relay 1 goes off
If b1 >b3 relay 2 goes on ( a...