#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// Initialize the LCD
lcd.init();
// Turn on the backlight
lcd.backlight();
// Print initial message
lcd.print("Hello, Arduino!");
}
void loop() {
// Clear the display
lcd.clear();
// Print a message
lcd.print("Time: ");
lcd.print(millis() / 1000); // Print seconds since Arduino started
delay(1000); // Wait for a second
}