I have successfully hacked together datalogger using the Adafruit shield. Firstly with the LM36 but then with 2 / DS18b20 physically adding the ID code for each ds. Works well enough.
But now I am trying to chop the code to use as a thermostat but am having difficulty assigning the output temp to a varriable which I can then do if else statements on. The lines :- sensors.requestTemperatures(); printTemperature(Ds18b20Thermometer);
print it to the serial for display and #logfile works for the data logger but if I try int temp1 = (Ds18b20Thermometer)
I get the conversion error " invalid conversion from 'uint8_t*' to 'int' " From reading the forum I understand that (ds18b20thermometer) must be a big number? of a long string or something like that that can not squeeze into a number. (something about big bytes and little bytes)
Question is therefore is there a simple way of getting the temp a a number (float or int) out of (ds18b20thermometer) so that I can easily compare that temp to theshold temps for a simple thermostat project.
Sorry I have never posted to any forum so I am not aware of protocol so I don't mean any offense by my include language or omissions. Any help would be appreciated. Thank you