Wireless sensor with Xbee shields

Hi,

I’m making a wireless temperature sensor that sends its data to Pachube. Since I’m rather new to electronics, I’m doing it in two steps:

The first step is to get it working with one Arduino connected through USB that sends the data to Processing, which sends the data to Pachube. I completed this step using the tutorial on the Pachube website (http://community.pachube.com/arduino/usb/processing). The Arduino is running the Standard Firmata. In Processing, I can just write things like “arduino.analogRead(0)” to communicate with the Arduino, using the Arduino library for Processing.

The next step is to omit the USB cable. I’m planning to make a setup with 2 Arduino’s, both equipped with an Xbee shield (and Xbee series 1 chip. I already ordered the parts, so I really want to do it with both the Arduino’s). One Arduino is directly connected with the sensor and is running the Standard Firmata, the other Arduino acts as the coordinater and is connected with the PC through an USB cable, and has its processor removed.

Using this setup, will I still be able to use the Arduino library for Processing without altering the Standard Firmata on the sensor-Arduino? So will I still be able to write “arduino.analogRead(0)” without the Arduino knowing it’s communicating over wireless instead of the USB cable?

If not, what modifications to the code do I need to make?

Thanks in advance!

Nevermind, the Arduino library for Processing doesn’t work with Xbee’s. Had to do the job using serial commands, but hey, it works anyway.