Skip to main content

THE SOTH JOURNAL

ESP & ESPHome

Ideas, know-how, and a little inspiration for your connected home.

WORTH A CLOSER LOOK

ESP & ESPHome

Tasmota: flash an ESP-based plug or switch and control it locally over MQTT

Plenty of cheap Wi-Fi plugs, relays and switches are built around an Espressif chip and ship with firmware that talks only to the manufacturer's cloud. Tasmota replaces that firmware with an open one that runs entirely on your network: a web page on the device, a console, timers and rules on the device itself, and MQTT for anything bigger. This gui
Oct 28, 2026
7
min read

How to choose a temperature and humidity sensor: DHT22, BME280, AHT20 or SHT4x

Measuring temperature and humidity is the most common first project with an ESP32, an Arduino or a Raspberry Pi, and the choice of sensor decides whether the readings are useful. Four families dominate hobby shops: the DHT22 (also sold as AM2302), the Bosch BME280, the Aosong AHT20 and the Sensirion SHT4x. They differ in accuracy, interface and how
Oct 28, 2026
6
min read

MicroPython on an ESP32: flash the firmware, read a sensor and publish it over MQTT

ESPHome, Tasmota and the Arduino framework are the usual ways to program an ESP32 for the home, but there is another option that suits people who already know Python: MicroPython. It runs a Python interpreter directly on the microcontroller. You type commands into an interactive prompt (the REPL), see results immediately and copy .py files to the b
Oct 28, 2026
6
min read

Program an ESP32 in the Arduino IDE: install the board package, upload a sketch and serve a web page

ESPHome and Tasmota cover a lot of home projects without writing code, but sooner or later you may want firmware that does exactly what you need and nothing else. The Arduino IDE with Espressif's own Arduino core (arduino-esp32) is the most common way to write that firmware in C++. This guide takes you from a fresh Arduino IDE 2 installation to an
Oct 28, 2026
7
min read

Connect I²C sensors to an ESP32 reliably: addresses, pull-up resistors, bus speed and scanning

Most small sensors used in DIY home projects talk I²C: temperature and humidity sensors, pressure sensors, CO₂ sensors, light sensors, small OLED displays and I/O expanders. Two wires connect them all to an ESP32. When it works, it's easy. When it doesn't, the usual causes are a missing or wrong pull-up resistor, two devices with the same address,
Oct 28, 2026
8
min read

Build a WLED controller with an ESP32: wire an addressable LED strip, flash it from the browser and set it up safely

WLED is open-source firmware that turns an ESP32 or ESP8266 into a controller for addressable LED strips. It gives you a web interface, an app, effects, presets and a JSON API that all work on your local network, with no cloud account. This guide builds a basic controller for a 5 V WS2812B strip on an ESP32. It covers wiring, flashing with the web
Oct 28, 2026
10
min read