Why is my 74HC04 not inverting my input?
Figure 1. The original circuit.
The other side of the switch needs to be connected to ground (0 V).



simulate this circuit &ndash; Schematic created using CircuitLab
Figure 2. Without a ground connection on the switch the input is always pulled high by the resistor.
These sort of problems can be spotted much more easily on a schematic than on a wiring diagram or &quot;cartoon&quot; as the schematic shows the &quot;schema&quot; of the circuit.