A NOT gate (Inverter), is a single input logic gate. The output is simply opposite to that of the input.
You can simply create a NOT gate by using an NPN transistor and two resistors as shown here: ‘https://thelectronicsblog.wordpress.com/2015/11/29/not-gate-using-a-transistor’