mqtt input only works with single character

if (receivedChar == '101'){

This will never be true. receivedChar is one character, so you cannot compare it to multiple characters. BTW a string is wrapped by double quotes ("), single quotes are reserved for single characters.

To compare C-strings (character arrays) you can use the function strncmp().