About the Web Temperature-Based Fan Controller
A fan that thinks for itself: when the temperature goes above your limit, it switches on, and when it cools down, it switches off. It is great for rooms, cabinets, inverter and battery boxes, and pet areas. The logic also runs on the ESP32, so it works even when your phone is closed.
This remote runs fully in your browser, so it works on any phone or computer with no app to install. Try it now in demo mode. When you are ready, connect it to your own ESP32 or ESP8266 by Bluetooth, Wi-Fi hotspot, home Wi-Fi, USB cable or the internet. We write the Arduino code for you for each option.
How to use it
- Play with the remote in demo mode to see how it works.
- Build your device. See "What you need" below.
- Press Connect my device and pick how you want to connect. Bluetooth or Wi-Fi hotspot are the easiest.
- Press Get the code for this, upload it to your board with Arduino IDE, then connect. Now the buttons control your real device.
Why people like this tool
No app needed
Opens in any browser on Android, iPhone, laptop or tablet.
Real demo mode
Animated preview so you can test before you build.
Ready ESP32 code
Arduino sketch for ESP32 or ESP8266, made for this remote.
5 ways to connect
Bluetooth, Wi-Fi hotspot, home Wi-Fi, USB cable or internet (MQTT).
What you need to build it
- An ESP32 board
- A sensor for your job (like DHT22, DS18B20, soil moisture or pressure sensor)
- A relay module for the output device
- A 5V power supply and an enclosure
Not ready to build? You can still use the remote in demo mode to plan your project and test the buttons.
Commands this remote sends
Over Bluetooth or a USB cable, each command is a short text line like id=value. With MQTT, it goes to your-topic/<id>/set and your device reports back on your-topic/<id>/state. On Wi-Fi, the page calls /<id>?value=… on the device.
| id | Control | Values | Direction |
|---|---|---|---|
power | Fan | ON / OFF | Remote → device |
temp | Temperature | Device sends a number in °C | Device → remote |
max | Turn fan on above | 22 to 40 °C | Remote → device |
auto | Automatic mode | ON / OFF | Remote → device |
speed | Fan speed | 1 to 5 | Remote → device |
Stay safe
Mains electricity (230 V) can kill. If your device switches a fan, light, pump or any appliance, ask a qualified electrician to do the wiring. Use a relay rated well above the load, add a fuse or MCB, and keep everything inside a closed box. For motors and pumps, use a proper starter or contactor. A web remote must never be the only way to switch off a machine.