#include <LiquidCrystal_I2C.h>

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

LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);


void setup() {
  // Init
  lcd.init();
  lcd.backlight();

  // Print something
  lcd.setCursor(3, 0);
  lcd.print("Hello, world!");

  Serial.begin(9600);
  pinMode(pinSensor, INPUT);
}


void loop() {
  int readSensor = analogRead(pinSensor);
  lcd.setCursor(3, 1);
  lcd.print("sensor : ");
  lcd.print(readSensor);
  Serial.println(readSensor);
  delay(1000);
}