#include <LiquidCrystal.h>           //Sample using LiquidCrystal library

LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // select the pins used on the LCD panel

int lcd_key     = 0;                 // define some values used by the panel and buttons

void setup() {
  lcd.begin(16, 2);                  // start the library - 16 Zeichen , 2 Zeilen
  lcd.setCursor(0,0);
  lcd.print("Hallo ");               // print a simple message
  delay(1000);
  lcd.setCursor(6,0);
  lcd.print("Vorname");              // print a simple message
  delay(1000);
  lcd.setCursor(0,0);
  lcd.print("Messung an A0:"); 
}
 
void loop() {
  lcd.setCursor(12,1);                       // move cursor to second line "1" and 9 spaces over
  //lcd.print(String(millis()/1000)+" s");  // display seconds elapsed since power-up
  lcd.print(millis()/1000);                 // display seconds elapsed since power-up
  lcd.print(" s");                          // display seconds elapsed since power-up
  lcd.setCursor(0,1);                       // move to the begining of the second line
  lcd_key=analogRead(A0);
  //lcd.print(lcd_key);
  lcd.print(String(lcd_key*1000.0/1024*5/1000)+"mV");
  delay(100);
  //lcd.clear();
}