Processing to read Arduino

Thanks a lot! Your solution works on both, the simplified sketch and the extended one. And SimpleAnalogFirmata seems to be working well as well. However I still have a problem and that is how to integrate multiple Arduino pins to communicate to Processing. Not sure if it is due to wrong circuit wiring or Processing not capturing the multiple pin signals.