My first thought would be to use char array right from the beginning. I don't see the benefit of starting with integers then converting.
The First char could be 1,2,3 matching your states.
You have 8 sensors, second char could be A,B,C,D,E,F,G,H
Or you could reverse them if the parsing becomes more advantageous.