DHT11 — Temperature Alarm
Too hot, too cold, or just right
DHT11
Buzzer
LED
Threshold
What you will learn
- How to combine a digital sensor with multiple output devices (LED + buzzer)
- How to use a single threshold to switch between "safe" and "alarm" states
- How to keep the alarm separate from the normal display (so it can be silenced)
What you will need
| Component |
|---|
| 1× Arduino Uno |
| 1× DHT11 sensor |
| 2× 220Ω resistors |
| 1× green LED |
| 1× red LED |
| 1× buzzer |
| Breadboard |
| 6× jumper wires |
Step by step
Take it further
- Add a 16x2 LCD to show the current temperature numerically.
- Add a "max temp reached" log — record the highest temperature since reset.
- Make the buzzer pitch change with the temperature (higher pitch = hotter).
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Police SirenAlternating red + blue LEDs with a wailing 600–1500 Hz buzzer
DHT11 — Auto Fan ControllerHot day, fan on. Cool day, fan off.
Ultrasonic — Reverse Parking SensorBeep faster as you get closer
PIR — Smart Doorbell / Welcome LightA guest walks up to the door — chime + welcome LED
Simon Says — Memory GameRepeat the pattern, level by level
Ultrasonic — Pitch by DistanceCloser = higher pitch
Guides that use this project
2 guides on the site build this project as part of a longer explanation. The guide says why the circuit works; this page says how to wire it.
3D Printing for StudentsHow a 3D printer works, which type to start with, and how to design your own models, with the electronics behind extrusion and stepper control explained.
Electric Bikes ExplainedHow an electric bike works: the hub or mid-drive motor, the battery and its management, the controller, and what the numbers on the spec sheet actually mean.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino LED projects for beginners36 projects in this list
Arduino DHT11 temperature sensor projects7 projects in this list
Arduino buzzer and tone projects19 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.