#include <LiquidCrystal_I2C.h>
#define LCD_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_ROWS 2
LiquidCrystal_I2C lcd(LCD_ADDR, LCD_COLUMNS, LCD_ROWS);
void setup() {
// Initialize the LCD
lcd.begin(16,2)
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
// Set cursor position and print messages
lcd.setCursor(5, 0); // Set cursor to column 5, row 0
lcd.print("Hello"); // Print "Hello" on the first line
lcd.setCursor(0, 1); // Set cursor to column 0, row 1
lcd.print(" Sir"); // Print "Sir" on the second line
}
void loop() {
}