# Temperature Sensor Using Thermistor With Arduino Uno

158

Hi Guys in this instructables we will learn how to use Thermistor with Arduino.
Thermistor is basically a resistor whose resistance varies with variation in temperature.
So we can read its resistance and get the temperature from it & Thermistor is very cheap compared to other temperature sensors in market.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Things You Need

For this tutorial you will need following things :

1x Arduino uno : https://www.utsource.net/itm/p/9221687.html

1x Thermistor (10k or 100k : i am using 10k here ) :

https://www.utsource.net/itm/p/1273468.html

1x 10k resistor :

https://www.utsource.net/itm/p/8166799.html

Few jumpers : https://www.utsource.net/itm/p/9221310.html

## Step 2: Schmatics

The circuit is very simple so please connect everything According to shown in the schmatics and you will fine.
You can also refer the image i attached of my breadboard connections.

## Step 3: Code

Copy the following code & upload it to arduino :

#include

double Thermister(int data)
{
double temp;
temp=log(10000.0*((1024.0/data-1)));
temp=1/(0.001129148+(0.000234125+(0.0000000876741*temp*temp))*temp);
temp=temp-273.15;
Serial.println(" ");
Serial.print(temp);
Serial.print(" Celcius");
temp=(temp*9.0)/5.0+32.0;
Serial.println(" ");
Serial.print(temp);
Serial.print(" Fahrenheit");
Serial.println(" ");
Serial.println("..................................");
}

void setup()
{
Serial.begin(9600);

}
int i;
void loop()
{
Thermister(i);
delay(1000);
}

## Step 4: Get Temperature on Serial Monitor

After uploading the code, then open the serial monitor and you can get your Thermistor's temperature on your serial monitor as i am getting, refer image provided and you will fine.

Have fun reading temperature with Thermistor.

## Recommendations

• ### Internet of Things Class

22,824 Enrolled