added mask for the arduino pins
changed the expected values according to the mask