Read output data from Serial Monitor

hi

Is there a method for reading the data that I had sent to Serial Monitor?

like.. i want to get the data that i had sent to Serial Monitor , the output data.

No, not from Serial Monitor. But Serial Monitor is just an application that reads the serial port of the computer. Another piece of software (written in the language of you liking like Python, C/C++, Java etc) can read it as well. Note, only one application at a time can read it. So if Serial Monitor is open no other application can read that serial port.

You can also see the Arduino output with a general purpose terminal program such as RealTerm or PuTTY and they will have the ability to save what they receive to a file.

...R

If by reading data sent to the Serial Monitor you mean interpreting what the numbers mean, that's all up to your code. For instance, it's good practice to tag your variables before you print them - something like:

Serial.print("The value of X is: ");
Serial.println(X);

If you don't know much about the Serial.print function, the first line simply prints a string (the term inside quotes) and the second prints the actual data from the variable.

Open the monitor with 'Ctrl' + 'M'.

Why would you need to read what YOU wrote to the Serial Monitor application? You should ALREADY KNOW that.