I have four pressure sensors and how can i difference the data received from ser

Hi I am working on Ardunio UNO board
I need to collect data from Force flexi sensors and transmit through Xbee Series 2 .
The received output is post processed in matlab.
Now i am able to tranmit and receive data .
After receiving data in matlab i need to interface with webiste
Can some one suggest me how to start it.

I have four pressure sensors and how can i difference the data received from serial port

Hi I am working on Ardunio UNO board
I need to collect data from Force flexi sensors and transmit through Xbee Series 2 .
The received output is post processed in matlab.
Now i am able to tranmit and receive data .
After receiving data in matlab i need to interface with webiste
Can some one suggest me how to start it.

I have four pressure sensors and how can i difference the data received from serial port

flexiforce 1-617-464-4500

#include <XBee.h>
XBee xbee = XBee();
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
Serial.println("WIRELESS SENSOR NETWORK");
Serial.println("FLUX1 :");
// Serial.println("FLUX1 : FLUX2 : FLUX3: FLUX4: ");
}

// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int flexsensor1 = analogRead(A0);
// Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
float flex1 = flexsensor1 * (5.0 / 1023.0);
// print out the value you read:
Serial.println(flex1+10);
//Serial.println(flex1);
Serial.print(" ");
delay(1000);

int flexsensor2 = analogRead(A1);
float flex2 = flexsensor2 * (5.0 / 1023.0);
Serial.println(flex2-10);
//Serial.print(flexsensor2);
Serial.println();
delay(3000);

Is this the correct approach
I have added +10 to one sensors and -10 to another sensors
and in post process of matlab if i remoew these values then i get back the orginal data

The simplest way to allocate 4 values to the correct variables is always to send them in the same order. Then you know the first value goes into A, the second value into B etc.

Send the data as Comma Separated Values (CSV) - for example 12,127,36,98

Serial.print(valA);
Serial.print(',');
Serial.print(valB);
Serial.print(',');
Serial.print(valC);
Serial.print(',');
Serial.println(valD);

...R

I tried by seperating by , but when i post process with matlab i have problem at the ouput while processing in matlab because in matlab i dont know how to seperate the data .
so i used +10 and -10 and +20 and -20 for 4 sensors

if a1<=-1
s2=a1+20;
y=[y s2]
plot(y,'Color','r');
axis auto;
grid on;
hold on;
drawnow;
end
if (a1>=20)
s3=a1-20;
z=[z s3]
end

but this logic is only working for two sensors values if i give more than >10 then +20 values are also coming under +10 i should define limits b=a1(a1>10 & a1<19);
but this logic is not working properly

I don't know Matlab but I suspect it has the capability to read CSV data - it is a very common protocol.

...R