Control greenhouse sprinklers in rungs.dev based on soil moisture with hysteresis: turn on below 30%, off at or above 70%, hold inside the deadband.
| Name | Type | Usage | Description |
|---|---|---|---|
| In_Enable | BOOL | Input | System master enable. 0 disables sprinklers, 1 enables control. |
| In_SoilMoisture | REAL | Input | Current soil moisture percentage level. |
| Out_Sprinklers | BOOL | Output | Sprinkler control relay output. 1 for ON, 0 for OFF. |
Open this exercise in Rungs Studio, write your solution, then click Test in the toolbar to verify your work against the built-in test cases.