LED sensor output zeros

Hey another newbie here,
we are trying to link a simple LED circuit to Pachube to set up a live I/O feed. we are following the site's tutorials using the Processing software but are getting stuck. When running the sample script the output from processing is just a list of zeros with no LED blinking response. Any thoughts?
Thanks for your time in advance!

import processing.serial.;
import cc.arduino.
;

Arduino arduino;
float myValue;

void setup()
{
println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[1], 115200);
}

void draw()
{
myValue = arduino.analogRead(0);
println(myValue);
}

I haven't used any of the above before, but looking at the code, unless you have more than one arduino connected, the line:

arduino = new Arduino(this, Arduino.list()[1], 115200);

Should be:

arduino = new Arduino(this, Arduino.list()[0], 115200);

0 is always the first element in the array, so if there is only one arduino connected then it will appear at position 0 in the array.

Just a guess, but may be the problem...

0 is always the first element in the array, so if there is only one arduino connected then it will appear at position 0 in the array.

Yes, 0 is always the first element.. but the arduino is not always the first COM port. First Arduino is COM1, then the second is COM2, when I have the 2 plugged in anyways.

As for the Processing.. first get the board to work with the Firmata using some simple sketches.. just to make sure you're using the right port, and are able to actually transmit data.

But, you didn't show us any "Example Script" that would blink LED's.. The processing sketch here, just reads the analog port and prints it to the debug area.
Also, I remember somebody explaining that you have to change all the settings to the settings of your Pachube account, and computer.

But if you have the right Firmata uploaded, this sketch should work fine. Check to make sure you have the Potentiometer wired up correctly.