Error digitalRead from char

Hmmm, what are you actually putting into this array?

Oh yes, characters, from a serial input.

Well, that just happens to be what "char" means!

Also same as 8-bit bytes.