Error uploading the code to the arduino


#1

I am writing a code to transmit an analog signal recorded from a geophone, however, I am unable to upload the code to the arduino.
can you please help me with what is wrong here !! Thank you…

right now these are my codes from transmitter and receiver.

  1. transmitter code:
    #include <Printers.h>
    #include <XBee.h>

void setup() {
Serial.begin(9600);
pinMode(3, OUTPUT);
}

void loop(){

int Value = analogRead(A1);
Serial.println(Value);
analogWrite(3,Value);
}

  1. receiver code:
    #include <Printers.h>
    #include <XBee.h>

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(3,INPUT);
}

void loop() {
// put your main code here, to run repeatedly:
Serial.println(analogRead(3));
}


#2

Hi amoorte,

i would ask you a question, did you put this two code in one arduino ??