The Analog Temperature Module is based on the thermistor (resistance increases with the ambient temperature changes) which sense the real-time temperature of the surrounding environment changes. Change in temperature data in analog form can be taken from this module on analog IO pins, then through any microcontroller, it can be easily converted and displayed in Celsius degrees or any other respective Unit.
Test Code:
double Thermister(int RawADC) double Temp; Temp = log(((10240000/RawADC) – 10000)); Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp ); Temp = Temp – 273.15;// Convert Kelvin to Celcius return Temp; } void setup() { Serial.begin(9600); } void loop() { Serial.print(Thermister(analogRead(0))); Serial.println(“c”); delay(500); }
Package Includes:
1 x Analog Temperature Module.
There are no reviews yet.