title: Send a Analog Value from Arduino A to Analog Pin of Arduino B
body: <p>I'm trying to Read values from LM35 sensor on Arduino UNO and send it to another Arduino board through a PWM pin and an analog Pin</p>
  
  <p><a href="https://i.stack.imgur.com/V6cHj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6cHj.png" alt="enter image description here"></a></p>
  
  <p>When I run this project, The Serial Emulator of Arduino A is showing right values but Second one is always 0.00.
  Here is my first Arduino Code: </p>
  
  <pre><code>int pin = 2;
  int TempPin = A0;
  int pinAnalog = 3;
  
  void setup() {
     pinMode(3, OUTPUT);
     Serial.begin(9600);
  }
  void loop() {
     float tmp = analogRead(TempPin);
     float Result = (tmp/1024.0) * 500;
     Serial.println(Result);
     analogWrite(pinAnalog, Result);
     delay(3000);
  }
  </code></pre>
  
  <p>And Here is My Second Arduino Code: </p>
  
  <pre><code>void setup() {
      Serial.begin(9600);
  }
  void loop() {
      float res = analogRead(A0);
      Serial.println(res);
      delay(3000);
  }
  </code></pre>
  
  <p>What's wrong with my project or code?</p>