ds18b20 help please

dustyclc,

I know the DallasTemperature library should make it easier to read the sensors, but I don't understand why they require you to hard code the sensor addresses in the sketch.

You can try read the sensors directly with the OneWire V2 Library from PJRC using the example code on the same page as the library at OneWire Arduino Library, connecting 1-wire devices (DS18S20, etc) to Teensy. This code will find all of the sensors on your 1-Wire bus and the output should let you know if you are communicating correctly.

You can also see the example in the Arduino Playground to convert the HEX data returned in the example above to temperature in Celsius. See "Converting HEX to something meaningful (Temperature)" at Arduino Playground - OneWire

willnue