This is the scheamtic with an Arduino UNO but it works with any other Arduino. Connect the i2c module of the LCD as below and then upload the example code.