DS18B20 temperature sensor problem

I don't suppose those smiley faces are doing what you think they are. There is an icon with a # sign on it that is to be used when posting code, so that doesn't happen.

  int foo, bar;
  if (SignBit) {
    bar = -1;
  } else {
    bar = 1;
  }
  foo = ((Whole * bar) * 18);      // celsius to fahrenheit conversion section

Might I politely suggest that you need to get real. Meaningful names help more than you believe.