Dears, I’ve recently learned that void functions cannot return any variable. I’ve also read that if it is int type it would be possible.
Can you confirm that?
Because I’ve a code that works fine for 1 month and it includes global variable int and bool conditions. Attached you can see full code. Check void DisplayAlarmTime(). It uses several global int variables and I can transfer the changes of that variables within the function to any other functions or void loop() function as well.
Now I’m writing a new code to simplify the previous code and wonder how it works.
Irrigation_and_Curtain_System.ino (24.1 KB)