Hi!
I have tried extracting the number of the sender using the code below. My approach is to save +CMT string in a char array and then extract the number using particular index. But my first step is not working, it doesn't save the +CMT string like I expect it to.
Please help.
Classic trap. You check for at least one byte to be available, but then you try to read twenty bytes. Serial data is slow. You're reading it faster than it arrives. Change your available line to check if Serial.available() >= 20.