I don’t understand what this means. I could guess, but I’d prefer to see a schematic.
What type of multiplexer are you using?
Also, D3 (GPIO0) and D4(GPIO2) aren’t the best choice of pins…
I’d suggest that you start by hard-wiring the multiplexer pins high and low to enable one specific input channel and see what results you get that way.