 SoftwareSerial port(4, 5);
 
 void setup() {
-  //Serial.begin(9600);
   // Begin communication via Bluetooth
   port.begin(9600);
   // Begin communication via LoRa

    if(cmdIn[0] == 0xA0) {
      lora.transmit(out);
    }
    
    /*Serial.print("response:\t");
    for(int i = 0; i < 4; i++) {
      Serial.print(cmdIn[i], HEX);
      Serial.print('\t');
    }
    Serial.println();*/
    
  } else if(state == ERR_CRC_MISMATCH) {
    //Serial.println("CRC error");
  } else if(state == ERR_RX_TIMEOUT) {
    //Serial.println("RX timeout");
  }
}


    for(int i = 0; i < 4; i++) {
      out.data[i] = cmdOut[i];
    }
  }

  // Variable to store LoRa communication state
