pinMode and Default Output State of Pin

UKHeliBob:
Why do you have the pull up resistor on the output ?

It's a pull up resistor. I'm communicating with a DS18B20 temperature sensor which has an open drain output stage so a resistor is needed.