3 switches, code for each switch, trouble figuring out how to read each switch..

the others just dim

This usually indicates that you're turning them on and off, very rapidly.
Can you see why that might be?