We want to design a system that raises an alarm on high or low ambient temperature. We use N-channel and P-channel MOSFET transistors as switches. The basic design schematic is as follows:

When the gate voltage of the transistors changes, one LED turns on and the other turns off.

