grove (TTC03 Thermistor) Temperature sensor class
Spaniakos - grove (TTC03 Thermistor) Temperature sensor class
Temperature.ino

For Arduino
updated: spaniakos 2015

In this example a simple reading of the sensor value is printed into Serial.
the valueis first converted to Celcius using class functions.

#include <SPI.h>
#include <TempSensor.h>
int TempPin = A0;
float TempThres = 0.10;
TempSensor TS(TempPin,TempThres);
void setup() {
TS.begin();
}
void loop() {
TS.Sensor_to_Temp();
Serial.print("Temp :");
Serial.println(TS.Value());
delay(1000);
}