Need to monitor temperature sensor

Can you tell me if it is possible to isolate the data line from the sensor to the boards input pin with an optocoupler ?

That won't work in any simple scenario...

Both the Arduino and the DS1820 "hanging" on the data line need to be able to pull the data line low. The pin switches between being an input and being an output.