lora

I would like to do communication between led and potentiometer/ I write that code for my receiver
#include <SoftwareSerial.h>
SoftwareSerial loraserial(2,3);
int led=8;
int value;

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

void loop() {

if( Serial.available()>0){
int pot = Serial.parseInt();
loraserial.println(pot);
Serial.print(pot);

val= (255./1023.)* pot;
analogWrite(led,val);
}

}

and for second is
#include <SoftwareSerial.h>

int pot=A0;
SoftwareSerial loraserial(2,3);
int readpot;

void setup() {
Serial.begin(9600);
loraserial.begin(9600);
pinMode(pot,INPUT);

}

void loop() {
readpot=analogRead(pot);
loraserial.print(readpot);
Serial.println(readpot);
delay(250);

}
the led is not lightning can you help me to solve that issue and thank you so much

hajaroura:
the led is not lightning can you help me to solve that issue and thank you so much

I suggest first fixing the compilation error(s).