Hi all,

We are currently engineering the telemetry and sensor edge layer for a commercial refrigerator monitoring deployment across several cold-storage walk-in units and medical freezers (-20°C to 4°C).

Architecture Overview

• Sensors: 4x DS18B20 1-Wire temperature probes (stainless steel waterproof cap) inside each unit.
• Edge Node: ESP32-WROOM-32U with external 2.4GHz omni antenna, powered via isolated 5V DIN rail PSU.
• Firmware: ESP-IDF v5.1 running FreeRTOS with an MQTT TLS client communicating to an on-prem Mosquitto broker.
• Local Ingestion: Mosquitto -> Telegraf -> InfluxDB -> Grafana alerts.

The Problem

During steady-state cooling, sensor readings publish every 15 seconds over QoS 1 without issue. However, whenever the commercial compressor kicks in, we observe sudden Wi-Fi beacon timeouts and dropped TCP sockets on the ESP32:

text

[E][WiFiGeneric.cpp:143] wifi_event_callback(): Disconnected from WiFi, reason: 201 (BEACON_TIMEOUT)

[W][mqtt_client.c:714] esp_mqtt_handle_transport_error(): Transport read error: 104 (Connection reset by peer)

[I][mqtt_client.c:512] esp_mqtt_dispatch_custom_event(): MQTT_EVENT_DISCONNECTED

Because commercial refrigeration units create significant RF interference and heavy inductive load spikes when the compressor relay engages, the 1-Wire bus occasionally throws CRC errors (0xFF), followed by the Wi-Fi stack stalling for 6–10 seconds.

Steps Already Taken

  1. Added a 0.1µF decoupling capacitor across VCC/GND and dropped the 1-Wire pullup resistor from 4.7kΩ to 2.2kΩ to harden signal integrity against electromagnetic noise.

  2. Implemented ring-buffer offline storage in SPIFFS flash so sensor payloads aren't lost during reconnection.

  3. Tested ferrite chokes on the power feed.

Questions for the Community:

  1. For those running edge sensor networks in noisy industrial refrigeration environments, do you isolate the sensor bus via optocouplers, or is switching from 1-Wire to RS485/Modbus RTU the standard route here?

  2. How do you handle Wi-Fi reconnection backoff without stalling high-frequency temperature threshold checks in FreeRTOS?

Any insights from embedded/IoT devs who have deployed hardware inside steel-lined refrigeration units would be hugely appreciated!