The game's electrical tools are pretty limited.  It would be very helpful to have a logic block (panel?) to better control your systems.  Let it connect multiple inputs and outputs.  Once placed, maybe you could access a radial menu by holding 'E' to change its behavior (NOT, AND, OR, XOR, NAND...