       int potValue1 = analogRead(A1);
       int angleValue1 = map(potValue1, 0, 1023, 0, 180);
       radio.write(&angleValue1, sizeof(angleValue1));
-  delay(5);
-  radio.startListening();
-  while (!radio.available());
-  radio.read(&buttonState, sizeof(buttonState));
-  if (buttonState == HIGH) {
-    digitalWrite(led, HIGH);
-  }
-  else {
-    digitalWrite(led, LOW);
-  }
+          int potValue2 = analogRead(A2);
+          int angleValue2 = map(potValue2, 0, 1023, MIN_SIGNAL, MAX_SIGNAL);
+          radio.write(&angleValue2, sizeof(angleValue2));
+           if(Serial.available()) 
+           value = Serial.parseInt();    // Parse an Integer from Serial
+           Serial.println(angleValue2);
 }

* 
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(7, 8); // CNS, CE
const byte addresses[][6] = {"00001", "00002"};
boolean buttonState = 0;
    #define MAX_SIGNAL 2100
    #define MIN_SIGNAL 700
void setup() {
  pinMode(12, OUTPUT);
  radio.begin();
  radio.openWritingPipe(addresses[1]); // 00001
  radio.openReadingPipe(1, addresses[0]); // 00002
  radio.setPALevel(RF24_PA_MIN);
  Serial.begin(115200); 
}
void loop() {
  delay(5);
