That sounds like a great project! For RT-Thread, a common approach is to separate responsibilities into different threads—for example, one thread for sensor polling, one for UI/display updates, and another dedicated to network/MQTT communication. Using message queues or event flags between threads can help avoid blocking and keep timing predictable. Also try to keep the MQTT client in its own thread so reconnects or network delays don’t interfere with sensor timing.
For Wi-Fi modules, many developers find ESP8266 or ESP32 modules fairly easy to integrate since there are plenty of examples and AT firmware options that work well with RT-Thread. You might also find this MQTT + Home Assistant guide useful for structuring your topics and automation:
https://www.home-assistant.io/integrations/mqtt/ basketball stars
Ask Best Practices for Building a Smart Thermostat with RT-Thread and MQTT?