Arduino and MF52 Thermistor

I bought MF52-103 3435 10K ohm 5% Thermistor from ebay, it is basically a very cheap temperature sensor. You can read very easily values from it with an arduino, all you do is the steps below.
Step 1. Circuit
wy

Step 2. Arduino code

#include <math.h>
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(1055-analogRead(0)));
Serial.println("c");
delay(500);
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *