Electronic circuits · no code

Thermistor Heat Detector

An NTC thermistor senses heat and lights a red LED when the temperature goes above a threshold you set with a potentiometer.

  • LevelBeginner
  • Time20 min
  • Power9 V DC
  • CategorySensors

Bill of materials

Everything you need to build it, with the reference you will see on the schematic.

Bill of materials
Qty Part Ref.
1 10 kΩ NTC thermistor (at 25 °C) RT1
1 1 kΩ potentiometer RV1
1 BC547 NPN transistor Q1
1 470 Ω resistor (yellow-violet-brown) R1
1 red LED D1
1 9 V battery with snap clip BT1
1 Breadboard (400 tie-points or more)
5 Jumper wires

Missing parts? The kits recommended by Impeca Tech include almost all of them. See the kits

Schematic & wiring

On the left, the circuit diagram; on the right, the same circuit built on a breadboard. Both connect exactly the same things.

Circuit diagram of “Thermistor Heat Detector”
Circuit diagram
Breadboard layout of “Thermistor Heat Detector”
Breadboard layout

Wire it step by step

  1. Place the components
    • 10 kΩ NTC thermistor RT1: one leg in 3f and the other in 5f (either way round).
    • 1 kΩ potentiometer RV1: its three legs in 9f (end 1), 10f (wiper, the middle one) and 11f (end 2).
    • BC547 transistor Q1 with the flat face (the one with the text) towards you, left to right: collector (C) in 8h, base (B) in 9h, emitter (E) in 10h.
    • 470 Ω resistor R1 (bands: yellow, violet, brown, gold): one leg in 3h and the other in 6h (either way round).
    • red LED D1: the long leg (+, anode) in 6f and the short leg (−, cathode, flat side) in 7f.
  2. Add the jumper wires
    • Red wire: from 3j to the + (red) rail.
    • Orange wire: from 5j to 9j.
    • Black wire: from 10j to the − (blue) rail.
    • Black wire: from 11j to the − (blue) rail.
    • Turquoise wire: from 7j to 8j.
  3. Connect the battery
    • Connect the 9 V battery to its clip: the clip’s red lead to the + (red) rail and the black one to the − (blue) rail. Do this last, once everything else is in place.
  4. Test the circuit
    • Turn RV1 until the LED lights at room temperature, then back off slowly until it goes out; back off a little more. Warm the thermistor with air from a hair dryer about 20 cm away: after a few seconds the LED lights. Take the dryer away and, once the thermistor cools, it goes off. The closer to the threshold you leave RV1, the sooner it lights.

How to read the holes: the letter is the row and the number is the column of the breadboard (for example 7f). The red (+) and blue (−) rails are the two long lines along the edge.

How does it work?

  1. 1Heat lowers the thermistor’s resistance
  2. 2The voltage at the base of Q1 rises
  3. 3Q1 conducts above about 0.65 V
  4. 4The red LED lights

The NTC thermistor (10 kΩ at 25 °C) and potentiometer RV1 form a voltage divider that feeds the base of Q1. An NTC lowers its resistance as it heats up: the hotter it gets, the less voltage drops across it and the more the base voltage rises. At about 0.65 V Q1 starts to conduct and lights the red LED with about 15 mA through R1 (470 Ω). RV1 is wired as a variable resistor from 0 to 1 kΩ and sets the threshold: with about 300 Ω the LED lights around 50 °C (between about 47 and 57 °C depending on component tolerances and the battery) and with about 450 Ω already around 40 °C (36–46 °C), so it is more sensitive. At room temperature (25 °C) the LED stays off with both settings. A resin-coated NTC withstands about 105 °C: do not bring it near a flame.

Testing & troubleshooting

What you should see

Room (25 °C), setting at 30 %
LED currentunder 1 µA
Voltage at Q1 base≈ 0.26 V
Near a flame or hairdryer (70 °C), setting at 30 %
LED current≈ 15 mA
Voltage at Q1 base≈ 0.74 V
More sensitive setting (45 %) at 55 °C
LED current≈ 15 mA
More sensitive setting (45 %) at room temperature
LED currentunder 1 µA

Approximate values, calculated with typical parts. With real parts they can vary by 10 % or more.

If something does not work

The LED is always on

RV1 is too sensitive: turn it towards the other end. It may also be that the thermistor and RV1 are swapped or the thermistor legs touch. At 25 °C with RV1 at 1 kΩ the LED lights, which is expected.

The LED does not light even with heat

At one end of its travel RV1 is 0 Ω and the circuit never reacts: turn it to the other side. Check the BC547 (flat face towards you: collector, base, emitter) and that the LED’s long leg goes to R1. A lukewarm hair dryer may not pass 40 °C: try the more sensitive setting.

Want to automate this circuit with code?

Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.