If the water
is hot AND money paid AND the cup is present then the output of the first
gate will go high.
Depending upon the position of the switch, either the upper or lower output gate will go high, turning on the correct valve. This is a simple circuit which can be expanded to provide milk and to count the money, give change etc. |