Free MQTT broker for your ESP32 + ESPHome + DS18B20

Point your ESP32 + ESPHome + DS18B20 at our Mosquitto broker and monitor cold rooms, fridges and freezers from your phone, with email alerts. Free with EzGYM.

The ESP32 + ESPHome + DS18B20 measures temperature and publishes it over MQTT. For that it needs a server (broker): EzGYM 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 EzGYM, 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. 1 Create your free EzGYM account, go to Sensors and add a sensor with its range.
  2. 2 Note the server, username, password and topic the app gives you.
  3. 3 Wire the DS18B20 probe to the ESP32 (GPIO4 in the example) and add the block below, with your details, to the ESPHome YAML.
  4. 4 Flash the firmware to the ESP32 from ESPHome.
  5. 5 Within a few minutes you see the reading in EzGYM.
one_wire:
  - platform: gpio
    pin: GPIO4

sensor:
  - platform: dallas_temp
    name: camara
    update_interval: 60s

mqtt:
  broker: ezgym.ddns.net
  port: 1883
  username: username
  password: password
  topic_prefix: s/username
  discovery: false

Frequently asked questions

Does the ESP32 + ESPHome + DS18B20 work with EzGYM?

Yes. EzGYM understands Shelly, ESPHome and Tasmota readings: just enter the server, username and password in the ESP32 + ESPHome + DS18B20 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

Create a free account