passing value to a function

    char text[13];
    sprintf(text, "%d-No Signal", slaveID);

You COULD have googled sprintf().