How can I read serial plotter of arduino via bluetooth?

Howcan I read serial plotter of arduino via blue tooth? My current code does not show anything on the canvas unless I open the serial plotter in the laptop itself, even after that, it only displays one value.
this is my code for the graph

What do you get in the Y variable?
Put a Label under the Y variable to see what you get.
Y: ReceivUnsigned1ByteNumber
Label1.Text:Y

Could you please explain how do I put a Label under the Y variable, I intend to get the value of A0 pin of the arduino as my Y variable.

When I try running the command it remains blank. PLease tell what can I do the fix the issue

Have you consulted other topics in this Community about Bluetooth?
Try to send the data as a string (text)
Simplify your code until you get the value of Y.

Post your .ino code so we can compare data formats.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void setup() {
// initialize the serial communication:
Serial.begin(9600);
pinMode(10, INPUT); // Setup for leads off detection LO +
pinMode(11, INPUT); // Setup for leads off detection LO -

}

void loop() {

if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
Serial.println('!');
}
else{
// send the value of analog input 0:
Serial.println(analogRead(A0));
}
//Wait for a bit to keep serial data from saturating
delay(1);
}

You will have to check for this incoming non-numeric value in AI2, to avoid using math on it.

Since you are sending numbers as text and using a line delimiter,
follow the standard Delimited text pattern ...

Please see the Delimiter article in FAQ

Be sure to use println() at the end of each message to send from the sending device, to signal end of message. Do not rely on timing for this, which is unreliable.

In the AI2 Designer, set the Delimiter attribute of the BlueTooth Client component to 10 to recognize the End of Line character.
BlueToothClient1_Properties
Also, return data is not immediately available after sending a request,
you have to start a Clock Timer repeating and watch for its arrival in the Clock Timer event. The repeat rate of the Clock Timer should be faster than the transmission rate in the sending device, to not flood the AI2 buffers.

In your Clock Timer, you should check

  Is the BlueTooth Client still Connected?
  Is Bytes Available > 0?
     IF Bytes Available > 0 THEN
       set message var  to BT.ReceiveText(-1) 

This takes advantage of a special case in the ReceiveText block:

ReceiveText(numberOfBytes)
Receive text from the connected Bluetooth device. If numberOfBytes is less than 0, read until a delimiter byte value is received.

If you are sending multiple data values per message separated by | or comma, have your message split into a local or global variable for inspection before trying to select list items from it. Test if (length of list(split list result) >= expected list length) before doing any select list item operations, to avoid taking a long walk on a short pier. This bulletproofing is necessary in case your sending device sneaks in some commentary messages with the data values.

Thank a lot!