How to add updating variables in Lanel text?

If you want to watch the change of a string or variable and set a label automatically you need to do it periodically (‘observe’ in main loop or with timer as Marian_M suggests.)
A similar question has been asked in this topic: How do you send ESP32/Arduino variable to Squareline's GUI? - #5 by Marian_M