#include <LiquidCrystal_PCF8574.h>

 

LiquidCrystal_PCF8574 lcd(0x27);

 

#define pin_A0 A0

 

int ADC_0;

 

void setup() {

  // put your setup code here, to run once:

  Serial.begin(9600);

  

  lcd.begin(20, 4); // initialize the lcd

  delay(200);

  lcd.setBacklight(255);

  lcd.print("ADC_0:");

}

 

void loop() {

  // put your main code here, to run repeatedly:

  ADC_0 = analogRead(pin_A0);

  Serial.println(ADC_0);

 

  lcd.setCursor(7, 0);

  lcd.print(ADC_0);

  lcd.print("   ");

 

  delay(100);

}