Temperature Threshold Alert
Measure temperature with a thermistor and light an LED when the threshold is crossed.
Circuit diagram

Interactive circuit guide
Run the simulation, follow the build steps one by one and try it in our real app.
Stopped
Step-by-step build
You can open the same circuit in the browser simulator without any installation and inspect the wires and components there.
Parts list
| Component | Qty | Description |
|---|---|---|
| Arduino Uno | 1 | Reads the temperature, makes the threshold decision and drives the LED. |
| 5V reference connection | 1 | Supplies a steady voltage to the divider. |
| 10 kΩ resistor | 1 | Forms the voltage divider with the NTC thermistor. |
| NTC thermistor | 1 | Sensor whose resistance falls as temperature rises. |
| 220 Ω resistor | 1 | Limits the warning LED current. |
| Red LED | 1 | Signals that the threshold has been crossed. |
| Ground connection | 1 | Common reference for the divider, the LED and the board. |
Breadboard layout
The Arduino sits on the left, with the divider resistor and thermistor at the top right and the warning LED with its 220 Ω series resistor at the bottom right. The junction of the thermistor and divider resistor goes to analogue pin 4, the LED chain to digital pin 5, and all ground connections share one rail.
Build it step by step
- Place the Arduino Uno on the work area.Tip: the GND pin is index 0.
- Connect 5V to the first leg of the 10 kΩ divider resistor.Tip: do not mix up the divider resistor and the thermistor.
- Connect the other leg of the resistor to the thermistor, and the same point to analogue pin 4.Tip: the measurement point is where the two components meet.
- Connect the other leg of the thermistor to the common ground.Tip: the two legs of the thermistor are symmetrical.
- Connect digital pin 5 to the LED through the 220 Ω resistor, then connect the LED to ground.Tip: never light an LED without its series resistor.
- Connect Arduino GND to the common ground, upload the code and test the threshold.Tip: the LED should light when you warm the thermistor and go out when it cools.
How it works
The resistance of an NTC thermistor falls as temperature rises. In the voltage divider built with a fixed resistor, a change in thermistor resistance changes the voltage at the junction, and the Arduino reads this voltage at its analogue input. The sketch compares the reading with a preset threshold and drives the digital pin high when the threshold is crossed. That pin drives the LED through a 220 Ω resistor that limits the current. When the value drops back below the threshold, the pin is pulled low and the LED goes out. In this way an analogue temperature measurement is turned into a simple on/off warning decision.
What you learn
- Turns an analogue temperature reading into a digital decision.
- Produces a warning by comparing a value with a threshold.
- Drives an LED safely with a series resistor.
Expected result: The LED lights when the temperature passes the set threshold and goes out when it falls below it.
Try it yourself
Set up the threshold alert: Light the LED when the temperature crosses the threshold.
Goal: The LED lights when the thermistor is warmed and goes out when it cools.
Tips
- Adjust the threshold value for the environment you are measuring.
- If the LED stays dark, check the polarity and the series resistor connection.
Frequently asked questions
How does the resistance of an NTC thermistor change?
Its resistance falls as temperature rises, so the divider output voltage changes accordingly.
Why is the LED driven through a 220 Ω resistor?
The series resistor limits the LED current; the template never connects an LED without a resistor.
What should you check if the LED does not light?
Check the polarity, the series resistor connection and the threshold value.
If you want to build this project in real life, you can get the parts from hobidevre.com. Link: hobidevre.com · more build guides