Informazioni sul HC-06

 if (x=='H' && stato=="HIGH"){
   .........
    if (x=='H' && stato=="LOW"){

Forse se togliessi quelle virgolette su HIGH e LOW funzionerebbe meglio