need help regarding modification of arduino code
This looks like the TM1637 DISPLAY:
TM1637Display display(CLK, DIO);

And this is the 16×2 LCD:
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

All interactions with this LCD are handled by this lcd object. If you
want to get rid of it, just remove every single statement that
references this “lcd” object.