#include <LiquidCrystal_I2C.h>

#define I2C_ADDR    0x27
#define LCD_COLUMNS 20
#define LCD_LINES   4

LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
void setup() {
  Serial.begin(115200);
  pinMode(A0, INPUT);
  // Init
  lcd.init();
  lcd.backlight();

  // Print something
  lcd.setCursor(3, 0);

}

void loop() {
    lcd.setCursor(6, 0);

  int value = analogRead(A0);
   if(value>=0 && value<340){
      lcd.print("LOW");
   }
     if(value>=340 && value<680){
      lcd.print("MIDLE");
   }
     if(value>=680 && value<=1023){
      lcd.print("HIGH");
   }
  delay(500);
  lcd.clear();
}