How to add i2c lcd to project

Hi can anyone help please i want To add i2c lcd to project. I am using a arduino nano. My goal is to print whatever is printed to serial monitor to my i2c lcd.

My code is as follows:

#include <EEPROM.h>     
#include <SPI.h>        
#include <MFRC522.h>  




#define COMMON_ANODE

#ifdef COMMON_ANODE
#define LED_ON LOW
#define LED_OFF HIGH
#else
#define LED_ON HIGH
#define LED_OFF LOW
#endif

#define redLed 3    
#define greenLed 6
#define blueLed 9

#define relay 4     
#define wipeB A1     

boolean match = false;          
boolean programMode = false;  

int successRead;    

byte storedCard[4];   
byte readCard[4];   
byte masterCard[4];   

 /*       ////////// FOR ARDUINO NANO V3/////////
          
        Read pins from left to right       Read pins from bottom to top if USB is facing down
        SS     Pin 1 on MFRC522         :  D10  Pin 3 on left of usb 
        SCK    Pin 2                    :  D13  Pin 1 on right of usb
        MOSI   Pin 3                    :  D11  Pin 2 on left of usb
        MISO   Pin 4                    :  D12  Pin 1 on left of usb
        RSt    Pin 7                    :  D9   Pin 4 on left of usb
        GND    Pin 6                    :  GND  Pin 14 on right of usb
        3.3V   Pin 8                    :  3.3V Pin 2 on right of usb
  */

#define SS_PIN 10
#define RST_PIN 8
MFRC522 mfrc522(SS_PIN, RST_PIN); 

///////////////////////////////////////// Setup ///////////////////////////////////
void setup() { 
  //Arduino Pin Configuration
  pinMode(redLed, OUTPUT);
  pinMode(greenLed, OUTPUT);
  pinMode(blueLed, OUTPUT);
  pinMode(wipeB, INPUT_PULLUP);   
  pinMode(relay, OUTPUT);
  
digitalWrite(relay, LOW);   
  digitalWrite(redLed, LED_OFF);  
  digitalWrite(greenLed, LED_OFF);  
  digitalWrite(blueLed, LED_OFF);

  //Protocol Configuration

  Serial.begin(9600);  
  SPI.begin();           
  mfrc522.PCD_Init();   
  
  
  
  mfrc522.PCD_SetAntennaGain(mfrc522.RxGain_max);      
  
  Serial.println(F("Access Control v3.3"));   
  ShowReaderDetails();  

  //wipe code//

  if (digitalRead(wipeB) == LOW) { 
    digitalWrite(redLed, LED_ON);
    Serial.println(F("Wipe Button Pressed"));
    Serial.println(F("You have 5 seconds to Cancel"));
    Serial.println(F("This will be remove all records and cannot be undone"));
    delay(5000);                        
    if (digitalRead(wipeB) == LOW) {    
      Serial.println(F("Starting Wiping EEPROM"));
      for (int x = 0; x < EEPROM.length(); x = x + 1) {    
        if (EEPROM.read(x) == 0) {              
        }
        else {
          EEPROM.write(x, 0);       
        }
      }
      Serial.println(F("EEPROM Successfully Wiped"));
      digitalWrite(redLed, LED_OFF);  
      delay(200);
      digitalWrite(redLed, LED_ON);
      delay(200);
      digitalWrite(redLed, LED_OFF);
      delay(200);
      digitalWrite(redLed, LED_ON);
      delay(200);
      digitalWrite(redLed, LED_OFF);
    }
    else {
      Serial.println(F("Wiping Cancelled"));
      digitalWrite(redLed, LED_OFF);
    }
  }
  
  if (EEPROM.read(1) != 143) {      
    Serial.println(F("No Master Card Defined"));
    Serial.println(F("Scan A PICC to Define as Master Card"));
    do {
      successRead = getID();            
      digitalWrite(blueLed, LED_ON);    
      delay(100);
      digitalWrite(blueLed, LED_OFF);
      delay(100);
    }
    while (!successRead);                  
    for ( int j = 0; j < 4; j++ ) {        
      EEPROM.write( 2 + j, readCard[j] );  
    }
    EEPROM.write(1, 143);                  
    Serial.println(F("Master Card Defined"));
  }
  Serial.println(F("-------------------"));
  Serial.println(F("Master Card's UID"));
  for ( int i = 0; i < 4; i++ ) {          
    masterCard[i] = EEPROM.read(2 + i);   
    Serial.print(masterCard[i], HEX);
  }
  Serial.println("");
  Serial.println(F("-------------------"));
  Serial.println(F("Everything Ready"));
  Serial.println(F("Waiting PICCs to be scanned"));
  cycleLeds();    
}

You have to add the display library to your project (#include...), and init the display in setup(). Then use the methods provided by the library for output to the display. For programming details see the example code, coming with the library.

Hi tannk you. I understand the #include part but how do i init the display

See the example code, coming with your library. Run the examples to verify your cabling, then copy the parts from setup() and loop() into your sketch.

Thank you will try that