That depends on the resolution you need for the sensor values.
If you don't need the full 0 to 1024 range provided by the analog pin, you can use "map" to adjust the value so it's only between 0 and 255 then use Serial.print() and just send the raw byte (use BYTE instead of DEC). Then the data received by processing would directly reflect the sensor value.
Note: in the example below, the serial output from the arduino will look like nonsense if you view it in the debug terminal.
Something like this (arduino code) -
Code:
int pressurePin = 5;
int var;
void setup() {
Serial.begin(9600);
pinMode(pressurePin, INPUT);
}
void loop() {
var = analogRead(pressurePin);
var = map(var, 0, 1023, 0, 255);
Serial.print(var, BYTE);
}
If you DO need the full 0 to 1024 range, you will have to send more than one byte to represent the value. I can help with that if you need it, but if you're just getting started I would recommend you stick to the simpler way I listed here..