Logic gates are the basic components in digital electronics. They are used to create digital circuits and even complex integrated circuits. For example, complex integrated circuits may bring already a complete circuit ready to be used – microprocessors and microcontrollers are the best example – but inside them they were projected using several logic gates. In this tutorial we will teach you everything you need to know about logic gates, with several examples.
Logic gates are AND gate, OR gate and NOT gate.

AND gate :

AND gate is both inputs are high, output is high.

OR gate :

OR gate is at least one input is high, output is high.

NOT gate :

NOT gate is input is high, output is low, vice versa.