A Complete MQTT+ESP32 Sensor Tutorial

This article is motivated by my previous article on ESPHome. Previously, we built a door sensor using ESPHome library. However, using an off-the-shelf platform grants us with little to no flexibility when it comes to micro-optimizations. Having said that, I noted the best implementation consumed over 1mA and took nearly 2 seconds to respond (Even after using MQTT, ESPHome API is known to be slower with HomeAssistant).





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why Solidity should not be your first language?

Warming Up for Kickoff

List Comprehension in Python

Turtlebot 2 Setup: Hello World

How to Build SimonSez With Notifications, SwiftUI, and Combine

Rancher Kubernetes persistence with GlusterFS

AWS: driving industrial industry data driven decision making

How To Install Nginx And Secure Nginx with Let’s Encrypt on Ubuntu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anuradha Wickramarachchi

Anuradha Wickramarachchi


More from Medium

Cute Server Released!

Wireless Communication Protocols Using ESP32

“One Button” Network Validation for Your IoT Device Installations

Getting Started Developing Qt with VS Code Development Containers as Simple as Possible