Skip to content
Home > Components > Sensors > NTC Thermistor

NTC Thermistor

A versatile temperature sensor module featuring both analog measurements and a tunable digital threshold trigger.

Component Preview

NTC Thermistor ModuleThermistor Module

This module uses a Negative Temperature Coefficient (NTC) thermistor where resistance drops as temperature increases. Coupled with an LM393 comparator, it provides both a raw analog output and a sharp digital output triggered at a specific temperature threshold.

SensorsTemperatureAnalogDigital

Overview

Ideal for thermostats, overheating alarms, and climate monitors, this sensor is incredibly easy to use. The onboard potentiometer allows you to dial in the exact temperature threshold at which the digital output (D0) triggers LOW, illuminating the onboard DO LED.

Pin Reference

PinTypeDescription
A0analogAnalog Output. Outputs a voltage proportional to the ambient temperature.
D0digitalDigital Output. Goes LOW when the temperature exceeds the set threshold.
GNDpowerGround. Connect to Arduino GND.
VCCpowerPower Supply. Connect to Arduino 5V.

Configurable Attributes

AttributeTypeDefaultDescription
temperaturenumber25The simulated environmental temperature in Celsius.
thresholdnumber512The comparator threshold (0-1023) at which D0 triggers.

Wiring Diagram (Arduino Uno)

  1. Connect VCC to Arduino 5V.
  2. Connect GND to Arduino GND.
  3. Connect A0 to Arduino A0 to read the analog temperature.
  4. Connect D0 to Arduino D2 for threshold monitoring.

Wiring Diagram

Example Arduino Code

cpp
const int analogPin = A0;
const int digitalPin = 2;

void setup() {
  pinMode(digitalPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  int tempValue = analogRead(analogPin);
  int isHot = digitalRead(digitalPin);
  
  Serial.print("Raw Temp Value: ");
  Serial.print(tempValue);
  
  if (isHot == LOW) {
    Serial.println(" --- WARNING: High Temp!");
  } else {
    Serial.println(" --- Temp OK.");
  }
  
  delay(500);
}

Simulation Notes

  • In the simulator, right-click the sensor to open its context menu and adjust the simulated temperature or the comparator threshold. Clicking the onboard potentiometer dial will also cycle its rotation visually.

Released under the MIT License.