<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ESP32 on Code Circuits</title><link>https://codecircuits.com/tags/esp32/</link><description>Recent content in ESP32 on Code Circuits</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>contact@codecircuits.com (Luan Pham)</managingEditor><webMaster>contact@codecircuits.com (Luan Pham)</webMaster><copyright>Copyright © 2019–2026, CodeCircuits</copyright><lastBuildDate>Thu, 10 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://codecircuits.com/tags/esp32/index.xml" rel="self" type="application/rss+xml"/><item><title>ESP32 Temperature and Moisture Monitoring with MQTT</title><link>https://codecircuits.com/post/esp32-temperature-moisture-mqtt/</link><pubDate>Thu, 10 Sep 2026 00:00:00 +0000</pubDate><author>contact@codecircuits.com (Luan Pham)</author><guid>https://codecircuits.com/post/esp32-temperature-moisture-mqtt/</guid><description>&lt;p&gt;An ESP32, a few sensors, and MQTT are enough to build a useful monitoring device for a home, greenhouse, or small IoT system. In this project, the ESP32 reads temperature, air humidity, and soil moisture, then publishes the measurements to an MQTT broker over Wi-Fi.&lt;/p&gt;
&lt;p&gt;The same architecture can later be extended with dashboards, alerts, data storage, or automatic irrigation.&lt;/p&gt;
&lt;h2 id="what-we-will-build"&gt;What we will build&lt;/h2&gt;
&lt;p&gt;The device will:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Connect to a Wi-Fi network&lt;/li&gt;
&lt;li&gt;Read temperature and air humidity from a DHT22 sensor&lt;/li&gt;
&lt;li&gt;Read soil moisture from an analog capacitive sensor&lt;/li&gt;
&lt;li&gt;Publish measurements as a JSON message over MQTT&lt;/li&gt;
&lt;li&gt;Reconnect automatically when Wi-Fi or MQTT is temporarily unavailable&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The data will be published to:&lt;/p&gt;</description></item></channel></rss>