GeekGuyMJ:
Your idea worked though, I didn't allow for the 2 digits. I did change the temp to 2 digits because the display always had a "0" before the 2 digit temp. I can now display the "degrees F." So, I'm understanding better now. Thanks guys
That was my fault a bit. Change:
sprintf (buf, "%03i", temp);
to:
sprintf (buf, "%3i", temp);
That still gives you 3 digits but not zero-filled.