Interfacing of Arduino Mega 2560 is not working with RC switch

Hii folks,

I have remodified the question to make it simple.

I want to Switch ON and OFF the RC switch and I am using Arduino Mega 2560. Here, I am using the RC switch Library. I have connected the Rx pin of Grove LoRa Radio 433MHz to Ardunio Pin 2. Pin 2 because Receiver is on Interrupt 0.

First I want to receive the information from Remote control to Rx Antenna and then from antenna it will be interrupted on Arduino pin 2 where I can see the information on Serial Monitor. I am not getting any information on Serial monitor when I pressed the button.

I have checked the connections too and seems to me perfect. I think there is no interface happening between Remote control and Reception Antenna.

void setup() {
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => that is pin #2

void loop() {
  if (mySwitch.available()) {
    int value = mySwitch.getReceivedValue();
    if (value == 0) {
      Serial.print("Unknown encoding");
    } else {
      Serial.print("Received ");
      Serial.print( mySwitch.getReceivedValue() );
      Serial.print(" / ");
      Serial.print( mySwitch.getReceivedBitlength() );
      Serial.print("bit ");
      Serial.print("Protocol: ");
      Serial.println( mySwitch.getReceivedProtocol() );


rcswitch.txt (662 Bytes)