#include <LiquidCrystal.h>
int temp;
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
void setup()
{
lcd.begin(16, 2);
lcd.print("Hello World!");
// cot hang bat dau tu 0
lcd.setCursor(0, 1);
lcd.print("Nhiet do:"); // Missing semicolon added here
}
void loop() {
temp = analogRead(A0); // Declare temp here
lcd.setCursor(11, 1);
lcd.print(temp); // Print the raw value
delay(100);
}