Arduino example sketch for using Xbees or serial.