First version with MQTT integration