Problem with boarduino and firmata

make sure you have the right serial port(im guessing you do already). the code looks fine.

actually, maybe try A0 instead of 0: println(arduino.analogRead(A0));. when i use 0 in Arduino code it doesn't seem to work for me, but A0 always works.