using dallas 1 wire on which pin?

I'm wanting to try the temp sensor One-Wire Ambient Temperature Sensor - MAX31820 - SEN-14049 - SparkFun Electronics, and this tutorial is a great help. Arduino Playground - OneWire

One thing I'm not sure about, do I have to use pin 10, or can any digital pin be used for 1-wire comm?
thanks

Hi,

You can use any digital pin. The pin number used for talking to the 1-wire devices are decided by line 4 in the tutorial (OneWire ds(10); // on pin 10) . To use another pin just type a different number than 10, i.e. OneWire ds(4);

We have used 1-wire sensors for a floorheating system in my brothers house, and it works really well.

Cheers

mist29:
Hi,

You can use any digital pin. The pin number used for talking to the 1-wire devices are decided by line 4 in the tutorial (OneWire ds(10); // on pin 10) . To use another pin just type a different number than 10, i.e. OneWire ds(4);

We have used 1-wire sensors for a floorheating system in my brothers house, and it works really well.

Cheers

Thanks!

Don't use pin 0 and 1 as they are the hardware serial port. If you want to print the temperature to the serial monitor you get interference ....