Design a logic circuit to form part of a home freezer, providing a warning light, consisting of an LED, if (a) the temperature is above -5 ºC, b) the door is open, or c) the mains current is off. The warning light must go on if any or all of the conditions obtain.

Our circuit will therefore satisfy the design criteria that the diode will go on if the temperature is too high or if the door is left open. If the mains current fails, the light will go on regardless of temperature or the status of the door.