I have no trouble talking to a DS18B20 using the standard wire library and defining the one-wire pin as D4 (on Nano and Uno). But neither one of them will work with other digital pins (D1, D12 for example). I'm under the impression that the only code line that needs to be changed in order to change the bus address is the following:
// Data wire is plugged into pin 4 on the Arduino
define ONE_WIRE_BUS 4
Is there something else I need to do to use a different pin?