Problems with 1wire and MAX

What is a MAX3150K?

Please fix the indentation in your code. Just press control-T in the IDE editor.