Problems getting the DS18B20 to work with code from Bildr.com

I recently bought one of these http://www.ebay.com/itm/Waterproof-Digital-Thermal-Probe-or-Sensor-DS18B20-for-Thermometer-Steel-1M-New-/390600397760?pt=LH_DefaultDomain_0&hash=item5af19913c0 because I didn't want to spend a lot of money on one. Then I hooked up the circuit, and uploaded the code to my Arduino, but I only get -1000 in the serial monitor. The code and circuit: http://bildr.org/2011/07/ds18b20-arduino/. I wired it all correctly, but I don't know how to fix it.

That sketch doesn't seem to include the wait time required between starting a conversion and reading the scratchpad. Should be 750 milliseconds.

The delay goes immediately after:

ds.write(0x44,1);

Pete

CDCosma:
. The code and circuit: http://bildr.org/2011/07/ds18b20-arduino/.

Me too. The code could be junk, so, if you can't fix it with the appropriate delay, try either Using a DS18B20 Temperature sensor with an Arduino- ar3ne1tt if you are sure you won't ever use more than one or two DS18B20, or Hacktronics if you need to use the one-wire system. I would suggest the latter anyway.

You seem to be implying that you might not have paid enough for your sensor. I'm sure you have paid as much as you need to, the sensor can take a lot of abuse and is probably fine. If you find it getting very hot, you have wired it the wrong way round, but it, and the Arduino, will probably survive.