You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For values between 90 and 180:
If flame detected:
Set foundFlame to true
Break out of for loop
Move server up by for-loop value
If no flame found:
Move servo to 90
For values between 90 and 0:
If flame detected:
Set foundFlame to true
Break out of for loop
Move servo down by for-loop value
Else:
Actuate the pump
While foundFlame is true: do nothing
Disable pump
Pseudocode for this: