What do you mean by the term ‘SMC1602A driver’?
If the code works and the wiring is right then what is your problem?
The code that you have attached looks a little complicated if you are just trying to make sure that your LCD is working. You really don’t want anything in loop() while you are troubleshooting.
I suggest something simple like this:
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // put your pin numbers here
lcd.begin(16, 2); // put your LCD parameters here