Greenhouse Humidity Control
The HUMID sensor and HEAT sensor trigger the MIST output if they are different. The WATER pump turns on only when both HEAT and HUMID are active.
Replay this puzzle All puzzles
The truth table
Inputs on the left, outputs on the right. A circuit solves the puzzle when it reproduces every row.
| HUMID | HEAT | WATER | MIST | PUMP |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 1 |
What the table tells you
- MIST is 1 in 4 of the 8 rows, a balanced function, which is what XOR-like and single-input-like rules look like. It does not depend on WATER at all: flipping it never changes the output, so any gate reading it is wasted. The rows that turn it on: HUMID=0, HEAT=1, WATER=0; HUMID=0, HEAT=1, WATER=1; HUMID=1, HEAT=0, WATER=0; HUMID=1, HEAT=0, WATER=1.
- PUMP is 1 in 5 of the 8 rows. Every input matters: for each one there is a row where flipping it changes PUMP.
The smallest known circuit: 3 gates
As a formula, one line per output:
MIST = (HUMID XOR HEAT)PUMP = ((HEAT AND HUMID) OR WATER)
As a netlist, in the order you would wire it. Each g is one gate; the last lines say which signal drives each output.
g1 = HUMID XOR HEATg2 = HUMID AND HEATg3 = WATER OR g2MIST = g1PUMP = g3
The search ran out of budget before it could rule out every smaller circuit, so 3 is the best anyone found, not a proof. If you build it in fewer, the leaderboard records it. Gates that do not feed an output are never counted.
Leaderboard for the day
Nobody posted a result on the day. The circuit above is the reference.
← #21 The Radio Station Alert · #23 The Lighthouse Beam Sync →