Code
<math.h>
#include
Thermister(
double
Temp;
double
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 +
(0.0000000876741 * Temp * Temp ))* Temp );
Temp = Temp - 273.15;
return Temp;
}
setup() {
void
Serial.begin
}
loop(){
void
Serial.print
Serial.println
delay
(1000);
}
Procedure
1.
Prepare a sketch with the given code and upload it to your
board.
2.
Connect the module/component to the board as shown in
the connection diagram or table.
3.
Open the Serial Monitor in the IDE and set the Baud rate to
9600.
4.
Measurements are output to the Serial Monitor.
Specifications
Operating voltage (max.)
Measuring range
Accuracy
Pull-up resistor
Dimensions (approx.)
Weight (approx.)
RawADC) {
int
(9600);
(Thermister(analogRead(0)));
("c");
5 V/DC
-55 to +125 °C
+/- 0.5 °C
10 kΩ
28 x 15 x 6 mm
2 g
3