Modulo s2c Xbee a arduino

Buenas, quiero cargar este código a un modulo xbee s2c es para leer un valor analogico..
#include <SoftwareSerial.h>
SoftwareSerial Xbee (1,0);

void setup(){

Serial.begin(9600);
Xbee.begin(9600);
}

void loop(){
if (Xbee.available()>21){
for(int i=0; i<22; i++){
Serial.print (Xbee.read(),HEX);
Serial.print(",");
Serial.println();
}
}
}

pero cuando lo conecto al arduino y quiero subirlo me sale el siguiente error.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x18
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x1e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x66
Ha ocurrido un error mientras se enviaba el sketch

alguein sabe por que no me deja subirlo

Hi,
Ese mensage se debe a que el IDE Arduino no se puede comunicar con el puerto. Ve a herramientas y mira ver si vez el puerto.

Moderador:
Por favor, lee las Normas del foro y edita tu código/error usando etiquetas de código.
Ve a edición, luego selecciona todo el código que has publicado, lo cortas y click en </>