LCD is a 4*20 display and I am using custom 2x2 icons.
Code tag fixed
if (temp_sens >= temp_threshold) {
open();
} else {
close();
}
I tried to be simple and use simple if...else conditions, but when it opens the iris on DHT demand it will close it and repeat until the value drop below threshold. I'd like to keep it open until the value drops under threshold, so in my logic need to keep it in the "loop" or cycle until the value will be not valid for the first condition and then initiate the close procedure. In my logic.. I think I made it too complex and this causes issues.