Comparing 8 digital inputs to control multiplexer analog inputs

Hello Paul and thank you for your response!

As I said in the start of this post, I am a complete newbie at this and trying to put code from the "playground" site etc together to accomplish what I want to do. I appreciate all the help I can get to get one step closer to my goal!

Okey, so do I have to make a "rxState = digitalRead" for every input or is there a better way of doing it? Another thing I've been wondering about is if the "digitalRead" only reads the state of the input once or if I have to make a new function for that (to read it every 10ms)?

Best regards,
Swoshie