← All articles

4 November 2026

Automatic Fan: How a Robot Knows When It's Hot

Illustration of an automatic fan by temperature: the temperature sensor reads the heat and switches the fan on

On a summer afternoon, sunlight pours into the room and the temperature inside slowly climbs. The fan in the corner switches itself on, whirring away until the room cools down, then switches itself off. Nobody touched it, nobody pressed a button, nobody gave an order. The air conditioner does the same: cool enough and it rests, warm again and it starts up. The whole house seems to know by itself when cooling is needed.

Children watching this often think it is magic, or imagine a tiny person sitting inside the fan pressing buttons. The truth is simpler and much more interesting: inside the fan there is a temperature sensor, and one short rule that anyone can understand. The automatic fan is the first — and clearest — lesson in automation: machines doing work on their own without a person standing guard.

How does a temperature sensor measure?

The most common temperature sensor in learning kits is a thermistor — a small component whose electrical resistance changes with temperature. The hotter it gets, the more its resistance shifts in one direction; the colder it gets, the more it shifts the other way. A circuit measures that resistance and turns it into a number a computer understands: 28 degrees, 31 degrees, 35 degrees.

Compare that with a human hand and it gets interesting. Your child's hand can feel hot and cold, but only vaguely: "too hot," "a bit chilly," "nice and warm." A hand cannot say precisely whether it is 30 or 32 degrees, and a hand can be fooled — water that feels warm after your hand has been in cold water is not really that warm. A temperature sensor is different: it gives an exact number, it never gets tired, it never gets fooled, and it measures continuously, day and night.

That is why every machine that needs to "know" temperature uses a sensor instead of guessing: a fridge must know whether it is cold enough inside, an air conditioner must know whether the room is cool enough, a computer must know whether its chip is overheating. An exact number is the foundation of every automatic decision.

The threshold — the heart of automation

With a temperature number in hand, the fan needs a rule to decide. That rule is a single line: if the temperature passes the threshold, switch the fan on; otherwise, switch it off. People set the threshold at 30 degrees. At 31 degrees, the fan runs. At 29 degrees, it rests. One "if... then..." sentence, repeated hundreds of times a minute — and the whole room stays cool with nobody watching.

The threshold is the most important idea in this lesson, because it shows up everywhere in robotics. A gas alarm sounds when the concentration passes a threshold. An obstacle-avoiding robot stops when the distance falls below a threshold. A lamp switches on when the darkness passes a threshold. Behind every "smart" device there is a threshold number chosen by a person, and a comparison running non-stop. Teaching a child to understand thresholds is teaching them to understand half of the automated world.

Your child will also ask a natural question: who decides the threshold is 30 degrees and not 28 or 32? The answer is people — engineers, or the user themselves. A threshold does not exist in nature; it is a choice. And the choice changes with the situation: the threshold for a child's bedroom is different from the threshold for a storage room, and the summer threshold is different from the winter one. Machines only carry out the decision; people are the ones who make it.

The on-off flicker problem — and how engineers fix it

There is a small glitch every child building an automatic fan will meet. Suppose the threshold is 30 degrees, and the room temperature is hovering right around 30: 29.9, then 30.1, then 29.9, then 30.1. The fan switches on and off, off and on, clicking all day long. It is noisy, it wears out the motor, and it is annoying.

The fix is another good lesson: instead of one threshold, use two. Switch the fan on when the temperature reaches 31 degrees, but only switch it off when it falls back to 29 degrees. The gap between 29 and 31 is a "buffer zone": a fan that is running keeps running, a fan that is off stays off. Small wobbles inside this zone no longer change the fan's mind. Engineers call this buffer hysteresis — a fancy word for a very everyday idea: do not change your mind over a tiny change.

The air conditioner in your home does exactly the same thing: it does not flicker on and off around a single number, it always allows a range of swing. The lesson is bigger than engineering: a good machine is not the one that reacts fastest, but the one that reacts at the right moment — and knows how to wait.

Automation is everywhere around the house

Once your child understands the automatic fan, they will start seeing automation everywhere. The fridge switches off when it is cold enough and starts again when it warms up. The cooling fan inside a computer spins faster when the chip is hot and slows down when the machine is idle. A greenhouse opens its vents when the sun gets hot. An egg incubator holds a steady temperature day and night so the eggs hatch on time.

All of those machines share one formula: a sensor measures a number, compares it with a threshold, then switches something on or off. The formula has only three steps, but from those three steps people have built entire automated factories. When a child realizes this, home appliances stop looking like mysterious black boxes — they start seeing the logic inside them.

A small project: a mini automatic fan

With a temperature sensor, a small fan, and a control board, a child can build their own automatic fan. The program needs only a few lines of reasoning: read the temperature; if it passes the threshold, switch the fan on and light the lamp; if it falls below, switch off.

The experiments are the fun part. Put the sensor near a sunny window and then far from it — how different are the readings? Breathe warm air onto the sensor — does the fan start? Set the threshold at 28 degrees, then change it to 32 — how does the fan's "personality" change? Each test is a chance for your child to verify with their own hands that the threshold is their choice, not a law of nature.

Your child will also meet the on-off flicker again if the threshold sits exactly at room temperature — and that is when the buffer-zone lesson arrives at just the right moment, not from a textbook but from the fan clicking on the desk. A bug you meet yourself and fix yourself is remembered ten times longer than a bug you read about in a book.

Try it at home — no shopping needed

These three games help your child sense temperature like a sensor before touching a real circuit:

  1. The "human thermometer" game: measure the temperature of the rooms in your house with an ordinary thermometer — the living room, the bedroom, the kitchen, the balcony. Which room is hottest, which is coolest, and by how many degrees? Then guess which room an automatic fan would switch on in first.
  2. Draw a temperature chart for the day: measure the outside temperature in the morning, at noon, in the afternoon, and in the evening, then draw it as a line chart. Your child will see temperature rise and fall like a wave — and understand why an automatic fan does not run all day, only during the hottest hours.
  3. The "human–fan" game: one person plays the fan, another plays the sensor. When the sensor holds up a "HOT" sign, the fan person must wave their arms; when the sign says "COOL," they stop. Play a few rounds, then change the threshold: the "HOT" sign only goes up when the other person is... actually sweating. Your child will see at once: the hardest part of being a sensor is deciding when to call it hot.

How does your child learn this at ManuStem?

At stem.manusignal.com, your child connects a temperature sensor into a circuit right in the browser — no kit to buy, no delivery to wait for. The simulated temperature rises and falls on screen, the 3D fan spins when the threshold is crossed and stops when the room cools down. If the wiring is wrong or the code does not run, the AI coach points out the mistake and suggests a fix in Vietnamese, like a teacher sitting beside them.

The course has 28 lessons — 8 in the Component Lab and 20 in the Competition Robot track — for kids aged 8 and up, taught in Vietnamese and English, with 4 free trial lessons. The temperature sensor is just one of the components your child gets to hold: after that come the ultrasonic sensor, the gas sensor, motors, and even programming a competition robot in C++ on the ESP32 kit for kids aged 13 and up.

Every smart home starts with a simple question: what happens when it gets hot? Let your child answer it with their first fan.


Let your child try building an automatic fan today — no kit to buy, 4 free trial lessons at stem.manusignal.com.

Read the Vietnamese version:

Quạt tự bật khi trời nóng: bài học đầu tiên về tự động hóa