16X2 LCD DISPLAY INTERFACED WITH ARDUINO UNO NOT DISPLAYING VALUES

wvmarle:
You say you have a 16x2 display, then try to print on the third line (you also have statements that print on lines 0 and 1).

I got that from an LCD code on the internet. My understanding of it was that

lcd.setCursor(0,0); //not sure

lcd.setCursor(0,1); //will display at the beginning of the 1st row

lcd.setCursor(0,2);//will display at the beginning of line 2/row 2

Is this wrong? I'm confused.