Algorithms and logic circuits are used to control physical systems.
An automated greenhouse irrigation system turns on a water sprinkler when the soil moisture sensor detects the soil is dry (S=1S = 1S=1) AND the water reservoir sensor detects that water is available (R=1R = 1R=1).
Complete the truth table for this system.
| S | R | S AND R |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |