Thanks, for the subroutine, I worked on it but yet to get the function
I get that now, each logic for each rung.
For the alarm, I will latch the output.
For the comparison, I want to use the output of the 3 sensor to open or close a valve and that was why I did it that way but the fact that it is wrong, kindly advice how to go about it.
Also, for the subroutine, is it that each detector will be design In a subroutine or what ?
Please if you have any written program that you know I can learn from, kindly help attach to aid my learning.
Regards