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.
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.
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.