Skip to main content
Analog temperature sensor: NTC (negative temperature coefficient) thermistor.

Pin names

Power
Positive power supply
Analog Output
Output signal (analog)
Ground
Ground

Attributes

string
default:"24"
Initial temperature value (celsius)
string
default:"3950"
The beta coefficient of the thermistor

Reading the temperature

The temperature sensor module includes a 10K NTC thermistor in series with a 10K resistor. This setup produces a voltage that depends on the temperature. You can read this voltage by connecting the OUT pin of the thermistor to an analog input pin and then using the analogRead() function. Use the following code to convert the return value of analogRead() into a temperature value (in celsius):

Simulator examples