Free MQTT broker for your ESP32 + ESPHome + DHT22 / SHT31
Point your ESP32 + ESPHome + DHT22 / SHT31 at our Mosquitto broker and monitor cold rooms, fridges and freezers from your phone, with email alerts. Free with EzDIS.
The ESP32 + ESPHome + DHT22 / SHT31 measures temperature and humidity and publishes it over MQTT. For that it needs a server (broker): EzDIS gives you one for free, with a username and password per sensor, so you don't have to run a Raspberry Pi or pay for a cloud.
Each reading reaches EzDIS, is kept for 90 days and shows on a chart from 6 hours to 30 days. You set the allowed range (for example -25 to -18 °C for frozen goods) and how many minutes it must stay out before alerting, so opening the door does not trigger an alert.
If the sensor stops sending, because of a power or WiFi outage at night, we let you know too: exactly what you need to avoid losing stock.
How to set it up
- 1 Create your free EzDIS account, go to Sensors and add a sensor with its range.
- 2 Note the server, username, password and topic the app gives you.
- 3 Wire the DHT22 / SHT31 probe to the ESP32 (GPIO4 in the example) and add the block below, with your details, to the ESPHome YAML.
- 4 Flash the firmware to the ESP32 from ESPHome.
- 5 Within a few minutes you see the reading in EzDIS.
sensor:
- platform: dht
pin: GPIO4
model: DHT22
temperature:
name: temperatura
humidity:
name: humedad
update_interval: 60s
mqtt:
broker: devices.ezdis.net
port: 1883
username: sn4k2p9x7q1m
password: TheSensorPassword
topic_prefix: s/sn4k2p9x7q1m
discovery: false
In this example, sn4k2p9x7q1m is the sensor username and s/sn4k2p9x7q1m its topic: replace them, and the password, with the ones the app gave you when you added the sensor. They are not your app login.
Frequently asked questions
Which username and password do I enter on the sensor?
The sensor's, not your account's: when you add the sensor under Sensors, EzDIS shows its username (starting with “sn”) and password. The password is shown only once; if you lost it, tap New password on the sensor page.
Does the ESP32 + ESPHome + DHT22 / SHT31 work with EzDIS?
Yes. EzDIS understands Shelly, ESPHome and Tasmota readings: just enter the server, username and password in the ESP32 + ESPHome + DHT22 / SHT31 MQTT settings.
How often should it send a reading?
One per minute is enough. If it sends more often, we keep each minute's average, minimum and maximum.
How much does it cost?
Nothing: the broker, charts and email alerts are free, up to 30 sensors per account.
More guides
- Shelly H&T
- Shelly Plus 1 + Add-on DS18B20
- ESP32 + ESPHome + DS18B20
- Tasmota + DS18B20
- Shelly Plus Plug S
- Shelly Plus 1PM
- Shelly PM Mini Gen3
- Shelly Pro 3EM
- Sonoff POW + Tasmota
- ESP32 + ESPHome + PZEM-004T
- Shelly Plus Uni + reed switch
- Tasmota + reed switch
- ESP32 + ESPHome + reed switch
- Butcher shops
- Ice cream shops
- Pharmacies
- Free MQTT broker vs HiveMQ
- Cold chain temperature log sheet