How to convert a int number to a string text?

As you already use the String class, why don’t you just use the dedicated methods for that?

Here we would not recommend using that class though and stick to c-strings and associated C functions in stdlib.h and string.h

Converting an int to a cString could be done with itoa() for example and if you have enough flash memory (because it adds a heavy piece of code) sprintf() could help too