#include <LiquidCrystal.h>
 
//Khởi tạo với các chân
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int t = A0;
 

void setup(){
  lcd.begin(16,2);

}
void loop(){
  int doc = analogRead(t);
  
  int m = map(doc,0,1023,0,100);
  int k = map(doc,0,1023,0,30);
  lcd.setCursor(0,0);
  lcd.print("ndo: ");
  lcd.println(m);
  lcd.setCursor(0,1);
  lcd.print("do am: ");
  lcd.println(k);

}