 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 ();
 
 

          lcd.print ("No averages yet");
        } else {
          lcd.print ("Hour: "); 
          lcd.setCursor (6,1);
          lcd.print (_averageTempLastHour);
          lcd.setCursor (10,1);
          lcd.print ((char)223);
          lcd.setCursor(11,1);
          lcd.print ("C ");
          lcd.setCursor (13,1);
          lcd.print (_averageHumidityLastHour);
          lcd.setCursor(15,1);
          lcd.write("%");
        }
        break;
      case 1: 
        lcd.print ("Week: "); 
        lcd.setCursor (6,1);
        lcd.print (_averageTempLastDay);
        lcd.setCursor (10,1);
        lcd.print ((char)223);
        lcd.setCursor(11,1);
        lcd.print ("C ");
        lcd.setCursor (13,1);
        lcd.print (_averageHumidityLastDay);
        lcd.setCursor(15,1);
        lcd.write("%");
        break;
      case 2: 
        lcd.print ("Month:"); 
        lcd.setCursor (6,1);
        lcd.print (_averageTempLastMonth);
        lcd.setCursor (10,1);
        lcd.print ((char)223);
        lcd.setCursor(11,1);
        lcd.print ("C ");
        lcd.setCursor (13,1);
        lcd.print (_averageHumidityLastMonth);
        lcd.setCursor(15,1);
        lcd.write("%");
        break;
    }
    _lcdLine++;

    
    lcd.setCursor(0,0);
    lcd.print ("Now:  ");
    writeDataToLCD (6, 0, temperature.current, humidity.current);

    lcd.setCursor(0,1);
    switch (_lcdLine) {
