Comparing 8 digital inputs to control multiplexer analog inputs

I have no idea if this works

It doesn't even compile.

    rxState = digitalRead(rxPins[count], HIGH);

The digitalRead() function takes ONE argument.

Why are you storing all 8 values in one variable? Only the last one would be there when the loop ended.