I changed the code to this:
#include "LiquidCrystal.h"
// initialize the library by providing the nuber of pins to it
LiquidCrystal lcd(8,9,4,5,6,7);
void setup() {
lcd.begin(16,2);
}
void loop() {
lcd.setCursor(0,1);
lcd.print("Hello World");
}
I then turned the pot slowly back and forth and nothing happened.