I am having trouble thinking this one through. I have a bunch of inputs from various sensors. I have;
-water temp sensor
-ambient temp sensor
- a few float swiches
and a few more that escape me.
I am looking to get a top level strategy for how to code this. Here is what i want. I have the code setup with functions and interrupts that change flag variable. I plan to use the flags to make the code do things. The question is how do I do this? With a bunch of nested if statements?
What is important to me is that say, for example, the water temperature is too high I’d like for it to correct the water temperature then restart the checks of all the sensors to make sure
that they’re still in range.
I hope this makes sense and someone can lend some insight to my newb-y problem. Thanks in advance.