Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for Arduino Temperature-Controlled Fan | DS18B20 & Hysteresis

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Arduino Temperature-Controlled Fan | DS18B20 & Hysteresis

An Arduino thermostat can read a DS18B20 temperature sensor and control a fan with separate switch-on and switch-off temperatures.

Understand the concept

The key idea

When the temperature lies between the thresholds, the controller retains its previous fan state. The width of that band affects both cycling frequency and the allowed temperature variation.

What to remember

  • Choose switch-off below switch-on for cooling.
  • Inside the band, the previous fan state determines the output.
Pause & think

Check your understanding

If the fan is running and temperature falls just below the switch-on point, should it stop immediately?

Show the explanation

It continues running until the lower switch-off threshold is reached.