Hello everyone,
I actually have a code for my Arduino1000 to measure the temperature reading but i need it to take the temperature that i have measured and send it out as a notification if the temperature exceed a limit (say 23 degreeC) to my email as an alert.
It would be really great if someone could help me out.
I can post out the code that i have:
#include <SPI.h>
#include "Adafruit_MAX31855.h"
#define MAXDO 3
#define MAXCS 4
#define MAXCLK 5
Adafruit_MAX31855 thermocouple(MAXCLK, MAXCS, MAXDO);
void setup() {
#ifndef ESP8266
while (!Serial); // will pause Zero, Leonardo, etc until serial console opens
#endif
Serial.begin(9600);
Serial.println("MAX31855 test");
// wait for MAX chip to stabilize
delay(500);
}
void loop() {
// basic readout test, just print the current temp
Serial.print("Internal Temp = ");
Serial.println(thermocouple.readInternal());
double c = thermocouple.readCelsius();
if (isnan(c)) {
Serial.println("Something wrong with thermocouple!");
} else {
Serial.print("C = ");
Serial.println(c);
}
Serial.print("F = ");
Serial.println(thermocouple.readFarenheit());
delay(1000);
}