Why Serial1.print() do not work

I am using Mega 2560 and I use Serial.write() to send data to laptop via USB Cable and Serial1.println() to send data to other computer via bluetooth.
here my code

int val1 = 90; // Joint 1 (Base)
int val2 = 90; // Joint 2 (Close to base)
int val3 = 90; // Joint 3 (Middle)
int val4 = 90; // Joint 4 (End)
const int input1 = 1; // khop 1
const int input2 = 2; // khop 2
const int input3 = 3; // khop 3
const int input4 = 4;
void setup()
{
Serial.begin(9600);

Serial1.begin(9600);

}
void loop()
{
val1 = analogRead(input1);
val2 = analogRead(input2);
val3 = analogRead(input3);
val4 = analogRead(input4);
Serial.write(val1);
Serial1.println(val1);
}
when I open Serial monitor I could not see value from Serial1.println
Can any one help me

when I open Serial monitor I could not see value from Serial1.println

That's because Serial1 does not output to the Serial monitor. Rather it uses a Tx pin on the board. Only Serial outputs to the Serial monitor.

phamb587:
I am using Mega 2560 and I use Serial.write() to send data to laptop via USB Cable and Serial1.println() to send data to other computer via bluetooth.

when I open Serial monitor I could not see value from Serial1.println
Can any one help me

Which computer are you opening the Serial Monitor on?

...R

UKHeliBob:
That's because Serial1 does not output to the Serial monitor. Rather it uses a Tx pin on the board. Only Serial outputs to the Serial monitor.

I got it this mean I have to add lcd to observe data. right?

Or, use an FTDI Module to provide another USB port that can talk to a 2nd USB on the computer. Open another copy of the IDE and use its Serial monitor, or some other serial program (Putty, Hyperterminal, etc).

No lcd needed. Just use a proper terminal programme, like RealTerm