     
     lcd.setCursor(0,0);
     lcd.print ("Now:  ");
-    lcd.setCursor(6,0);
-    lcd.print (temperature.current);
-    lcd.setCursor(10,0);
-    lcd.print ((char)223);
-    lcd.setCursor(11,0);
-    lcd.print ("C ");
-    lcd.setCursor (13,0);
-    lcd.print (humidity.current);
-    lcd.setCursor (15,0);
-    lcd.print ("%      ");
+    writeDataToLCD (6, 0, temperature.current, humidity.current);
 
     lcd.setCursor(0,1);
     switch (_lcdLine) {

  Serial.print ("\t");
  Serial.print (seconds);
  Serial.print ("\t");
}



void updateState (ControlledValue &variable);
void getCurrentRuntime (int &days, int &hours, int &minutes, int &seconds);
void updateAverages (float temp, float humidity);
void writeDataToLCD (int column, int row, float temp, float humidity);
void printTime ();


