int n;
char carray[6]; //converting string to number
readString.toCharArray(carray, sizeof(carray));
n = atoi(carray);
char carray[readString.length() + 1]; //determine size of the array
readString.toCharArray(carray, sizeof(carray)); //put readString into an array
int n = atoi(carray); //convert the array into an Integer
int n = readString.toInt();