NTC Thermistor
A versatile temperature sensor module featuring both analog measurements and a tunable digital threshold trigger.
Component Preview
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
| Pin | Type | Description |
|---|---|---|
| A0 | analog | Analog Output. Outputs a voltage proportional to the ambient temperature. |
| D0 | digital | Digital Output. Goes LOW when the temperature exceeds the set threshold. |
| GND | power | Ground. Connect to Arduino GND. |
| VCC | power | Power Supply. Connect to Arduino 5V. |
Configurable Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
| temperature | number | 25 | The simulated environmental temperature in Celsius. |
| threshold | number | 512 | The comparator threshold (0-1023) at which D0 triggers. |
Wiring Diagram (Arduino Uno)
- Connect VCC to Arduino 5V.
- Connect GND to Arduino GND.
- Connect A0 to Arduino A0 to read the analog temperature.
- Connect D0 to Arduino D2 for threshold monitoring.

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.
