Skip to content
DersTeders Log inSign up My panel

Temperature Threshold Alert

Measure temperature with a thermistor and light an LED when the threshold is crossed.

Circuit diagram

Temperature Threshold Alert circuit built on a breadboard with an Arduino board, thermistor, resistor and red LED
Breadboard layout and connections of the Temperature Threshold Alert circuit.

Bu projeyi gerçekten kurmak istersen parçaları hobidevre.com'dan temin edebilirsin →

Build it for real

To build this project for real, get the parts from hobidevre.com → hobidevre.com →

More build guides: hobidevre.com/blog

Create a free account — save your progress and get more circuits →

Save your circuit
Open in simulator

You can open the same circuit in the browser simulator without any installation and inspect the wires and components there.

Parts list

ComponentQtyDescription
Arduino Uno1Reads the temperature, makes the threshold decision and drives the LED.
5V reference connection1Supplies a steady voltage to the divider.
10 kΩ resistor1Forms the voltage divider with the NTC thermistor.
NTC thermistor1Sensor whose resistance falls as temperature rises.
220 Ω resistor1Limits the warning LED current.
Red LED1Signals that the threshold has been crossed.
Ground connection1Common 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

  1. Place the Arduino Uno on the work area.
    Tip: the GND pin is index 0.
  2. Connect 5V to the first leg of the 10 kΩ divider resistor.
    Tip: do not mix up the divider resistor and the thermistor.
  3. 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.
  4. Connect the other leg of the thermistor to the common ground.
    Tip: the two legs of the thermistor are symmetrical.
  5. 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.
  6. 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

Blog · Circuit simulator · Privacy Notice

İlgili konular

/ · /pages/blog