#include <LiquidCrystal_I2C.h>
// Set the LCD address, number of columns and rows
// Replace 0x27 with your LCD's actual address if different
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(9600); // Initialize serial communication
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
lcd.setCursor(0,0);
lcd.print("Hello, ESP32!"); // Display a message
}
void loop() {
lcd.setCursor(0,1);
lcd.print("this is test message")
// You can add code here to update the display
}