Follow these steps to make the xbee-arduino library available to your Arduino code:
- Follow the download instructions on the xbee-arduino homepage. At the time of this writing, the file to download is named xbee-arduino-0.5.zip.
- Open the Arduino IDE.
- In the Arduino IDE, open the Sketch menu, and select the Add Library... option from the Import Library... menu.
- In the file explorer which appears, find and select the xbee-arduino-0.5.zip file downloaded in Step 1 above, and click "Open".
- You should now see "XBee" at the bottom of the drop-down menu.
The xbee-arduino library is now ready to be used when building projects for Arduino.