Hey all -
I'm hoping to get a little help on the tutorial from Arduino 1-Wire Tutorial.
I am trying to use a single DS18b20 temperature sensor to get a read on ambient air.
My issue is, I am able to get my thermometer's serial number/device address (in my case it is 0x28, 0xFF, 0x46, 0x93, 0x85, 0x16, 0x05, 0x7), but when I replace the address included in the sample code with mine, I get the " Error getting temperature" message. Looking at the sample code, I know this is saying that my reading is -127C (which I've confirmed thru a direct read on pin 3), but I'm not sure why this is happening since the wiring is correct and I am able to get a read of the address.
I guess my questions are:
-
When there is a call to read the data from the thermometer, why would I be able to retrieve the address but not a correct temperature?
-
Has anyone else ran into this issue, and what was done to correct it?
A few more points that hopefully help:
- I'm running into the same issue even when I replace the sensor and its address in the code.
- The same thing occurs when I try running on a different board (Uno or Mega does not make a difference).
Any help would be appreciated!