Displaying text on LCD

It is quick and easy to connect a liquid crystal display to the Arduino to display text. This setup uses the I2C communication protocol, allowing user to connect two data wires instead of eight. Within your program, make sure you include a Liquid crystal library as well as an I2C library.

See my code:

//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
  lcd.init();                      // initialize the lcd 
  // Print a message to the LCD.
  lcd.print("2022 is a good year");
  lcd.print("to code");
  lcd.print("in the snow");
  lcd.print("Powered by s.b.smith");

void loop()

For more info: https://learn.adafruit.com/i2c-spi-lcd-backpack/arduino-i2c-use