and if i unplug +5 volts to ds18b20 it become 0 27 °C
Why does that surprise you? If the sensor isn't powered, it can't function. If it can't function, you really can't expect to read a temperature from it, can you?
Of course, it's hard to tell much from your snippet of code.