Receiving data from Android accelerometer

Hi guys,

I'm trying to ON/OFF led depending on possition of my phone via bluetooth. I have installed android app that sends accelerometer position to Arduino. My question is, where I'm making mistake? Because nothing is happening to the LED state...

My general idea was that LED goes ON when position is bigger than 80 (val>80 instead of val == 80) but I can't get any response neither this way.

Here is the code:

char val;         // variable to receive data from the serial port
int ledpin = 13;  // LED 
void setup()
{
  pinMode(ledpin, OUTPUT);  // pin 13 (on-board LED) as OUTPUT
   Serial.begin(9600);       // start serial communication at 9600
 }
 void loop() {
  if( Serial.available() >0 )       // if data is available

    val = Serial.read();         // read it and store it in 'val'
   if( val == '80' )               // if 80 was received led 13 is switched on
  {
   digitalWrite(ledpin, HIGH);    // turn on pin 13 
delay(1000);                  // waits for a second   
  }
else           
 {
    digitalWrite(ledpin, LOW);  // turn off pin 13 on
    delay(1000);                  // waits for a second
    
  }
}

I'm new at this, but I'm trying to learn everyday as much as possible :)

       // variable to receive data from the serial port
int ledpin =13;  // LED 
void setup()
{
  pinMode(ledpin, OUTPUT);  // pin 13 (on-board LED) as OUTPUT
   Serial.begin(9600);       // start serial communication at 9600
 }
 void loop() {
  if( Serial.available() >0 )  {     // if data is available

 int val = Serial.parseInt(); 
         // read it and store it in 'val'
   if( val > 80 )               // val >80  13 is switched on
  {
   digitalWrite(ledpin, HIGH);    // turn on pin 13 
delay(1000);                  // waits for a second   
  }
else           
 {
    digitalWrite(ledpin, LOW);  // turn off pin 13 on
                 
    
  }
  }
}

Nothing more to say but many, many thanks! Cheers mate!