Build it step by step
0 of 7 doneWire the module
Connect the five lines as in the table.
Test the reading
Read room temperature on the serial monitor.
Warm the probe
Hold it in warm water or near a kettle safely and watch it rise.
Add the lamp
Check it lights above 50 °C.
Test an open probe
Unplug the probe and see the lamp come on.
Fix the probe
Clamp it to a cool metal tray first, then try a plate that is off but warm.
Place the lamp
Put the lamp and buzzer where you see them.
How do you build a hot plate warning light?
A thermocouple on a hotplate lights a red lamp while the surface is still hot after switch-off. You need Arduino Nano, MAX6675 thermocouple module with K-type probe, LED 5 mm red, Resistor 220 Ω and Active buzzer 5 V. It takes 7 steps and about 60 minutes.
- Level
- Beginner
- Time
- About 60 min
- Parts
- 5
Parts list
- Development BoardsBuyArduino Nano × 1
- SensorsBuy
- SemiconductorsBuyLED 5 mm red × 1
- PassivesBuyResistor 220 Ω × 1
- Motors & ActuatorsBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| MAX6675 VCC | Nano 5V | Power |
| MAX6675 GND | Nano GND | Ground |
| MAX6675 SO | Nano D4 | Data out |
| MAX6675 CS | Nano D5 | Chip select |
| MAX6675 SCK | Nano D6 | Clock |
| Red LED and 220 Ω resistor | Nano D9 through the resistor, LED to GND | Warning lamp |
| Active buzzer + | Nano D8 | Chirp while hot |
| Active buzzer - | Nano GND | Ground |
Code
This is a reminder aid and not a safety device: always treat a hotplate as hot. Fix the K-type probe tip on the plate surface with heat-resistant tape or a clamp, with its wire running away from the heat, and keep the electronics away from the hot surface and off the plate. The MAX6675 reads from 0 to about 1000 °C with roughly 2 °C accuracy. The lamp becomes brighter the hotter the plate is and stays on until it is below 50 °C, and an open probe is treated as hot, since a failed sensor must not look like a safe one. Use low voltage only; the hotplate itself is wired by its maker.
Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
// Library: MAX6675 library by Adafruit.
#include <max6675.h>
const byte SO = 4, CS = 5, SCK_PIN = 6, LAMP = 9, BUZZ = 8;
MAX6675 tc(SCK_PIN, CS, SO);
const float HOT_C = 50.0; // lamp comes on above this
unsigned long lastChirp = 0;
void setup() {
pinMode(LAMP, OUTPUT); pinMode(BUZZ, OUTPUT);
Serial.begin(9600);
delay(500); // let the MAX6675 settle
}
void loop() {
float t = tc.readCelsius();
Serial.println(t);
if (isnan(t)) { // open or failed probe: treat as hot and warn
digitalWrite(LAMP, HIGH);
} else if (t > HOT_C) {
// brighter the hotter, from about 30 percent at 50 C to full at 150 C
int b = map(constrain((int)t, 50, 150), 50, 150, 80, 255);
analogWrite(LAMP, b);
if (millis() - lastChirp > 30000) { // short chirp every 30 s while hot
lastChirp = millis();
digitalWrite(BUZZ, HIGH); delay(80); digitalWrite(BUZZ, LOW);
}
} else {
digitalWrite(LAMP, LOW);
}
delay(1000); // the MAX6675 updates about every 0.22 s
}What the serial monitor should show
Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.
0.00
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Cold plate | Lamp off |
| Plate above 50 °C | Lamp on and chirp every 30 seconds |
| Hotter | Lamp brighter |
| Probe unplugged | Lamp on |
If it does not work
Reading is nan
Check the thermocouple is plugged in with the right polarity.
Always zero
Check the SO, CS and SCK wires.
Reading jumps
Keep the module away from the hot surface and wires apart.
Lamp stays dim
Check the resistor and the PWM pin 9.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the hot plate warning light?
Arduino Nano, MAX6675 thermocouple module with K-type probe, LED 5 mm red, Resistor 220 Ω and Active buzzer 5 V.
How long does the hot plate warning light take to build?
About 60 minutes for a beginner maker, in 7 steps.
How do I know the hot plate warning light works?
Cold plate: Lamp off. Plate above 50 °C: Lamp on and chirp every 30 seconds. Hotter: Lamp brighter.
Reading is nan: what should I check?
Check the thermocouple is plugged in with the right polarity.
Always zero: what should I check?
Check the SO, CS and SCK wires.
Reading jumps: what should I check?
Keep the module away from the hot surface and wires apart.
Lamp stays dim: what should I check?
Check the resistor and the PWM pin 9.
