I have only just started using Arduino and have no idea about programming. What I need to know is how I mix ths code with the sketch I am using for the monitoring. I have Python 3.4 installed on my computer which is running X.P. and Firefox browser.
[code]
/* Basic 2xDS18B20 code for serial monitor, bluetooth, Excel or w.h.y.
Derived from Hacktronics. Use their address sniffer and substitute your
numbers. Use Hacktronics connections diagram. \
Resolution is 12bit by default, prints to two decimal places
Stay away from using parasite power
85 means you haven't gotten a read yet, probably wrong order of commands
-127C means bad connection
*/
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into pin 3 on the Arduino
#define ONE_WIRE_BUS 3
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
// Assign the addresses of your 1-Wire temp sensors.
byte Thermo1[8] = {0x28, 0xBC, 0xBF, 0xE9, 0x03, 0x00, 0x00, 0x7A};
byte Thermo2[8] = {0x28, 0x09, 0xA9, 0xC0, 0x03, 0x00, 0x00, 0x95};
float Temp,Temp1,Temp2;
void setup(){
Serial.begin(9600);
sensors.begin();
delay(750);//Wait for newly restarted system to stabilize
}
void loop() {
sensors.requestTemperatures(); // call readings from the addresses
Temp1 = sensorValue(Thermo1);
Temp2 = sensorValue(Thermo2);
Serial.print(" Thermo1 = ");
Serial.print(Temp1);
Serial.print(" Thermo2 = ");
Serial.println(Temp2);
delay(60000);
}
//sensorValue function
float sensorValue (byte deviceAddress[])
{
Temp = sensors.getTempC (deviceAddress);
}
[/code]
What I trying to do is produce a line graph with temp and time values