   }
 }
 
-void newSensors()
-{
+void newSensors() {
   tft.startWrite();
   tft.writeFillRect( 210, 60, TFT_BUTTON_WIDTH, 120, TFT_BACK_COLOR );
   tft.endWrite();
 
-  sensorName_t sensorName;
-  for ( uint8_t num = 0; num < logger.sensorCount(); num++ )
-  {
+  sensorName_t name;
+  for ( uint8_t num = 0; num < logger.sensorCount(); num++ ) {
     tempArea[num].x = 220;
     tempArea[num].y = 70 + num * 40;
     tempArea[num].w = TFT_BUTTON_WIDTH - 20;
     tempArea[num].h = 30;
     tempArea[num].color = TFT_BACK_COLOR;
     tempArea[num].labelcolor = ILI9341_WHITE;
-    tempArea[num].fontsize = size2;
-    button.updateSensorLabel( tempArea[num], (char *)logger.getSensorName( num, sensorName ) );
-  }
-}
-
-void updateSensorLabels(  )
-{
-  sensorName_t sensorName;
-  for ( uint8_t thisSensor = 0; thisSensor < logger.sensorCount(); thisSensor++ )
-    button.updateSensorLabel( tempArea[thisSensor], (char *)logger.getSensorName( thisSensor, sensorName ) );
-}
-
-void showStatus()
-{
+    tempArea[num].fontsize = LARGE;
+    button.updateSensorLabel( tempArea[num], logger.getSensorName( num, name ) );
+  }
+}
+
+void showStatus() {
   const uint16_t BARS_BOTTOM      = 190;
   const uint16_t BARS_HEIGHT      = BARS_BOTTOM - 10;
   const uint16_t BARS_BORDER      = 12;

  }

  /* check if tftBrightness has changed */
  if ( map( tftBrightness, 0, 100, 0, backlightMaxvalue ) != ledcRead( TFT_BACKLIGHT_CHANNEL ) )
  { /* set new backlight value */
    ledcWrite( TFT_BACKLIGHT_CHANNEL, map( tftBrightness, 0, 100, 0, backlightMaxvalue ) );
    button.updateSlider( BL_SLIDER_AREA, tftBrightness, 0, 100 );
  }

  /* check if light status has changed */
  if ( displayedLightStatus != leds.state() )
  {
    drawMenuButtons();
    displayedLightStatus = leds.state();
  }

  /* process touch screen input */
  if ( touch.tirqTouched() )
  {
    TS_Point p = touch.getPoint();

    tftPoint_t clickedLocation = mapToTft( p.x, p.y );

    if ( button.pressed( LIGHTSON_BUTTON , clickedLocation ) )
    {
      leds.setState( LIGHTS_ON );
    }
    else if ( button.pressed( LIGHTSOFF_BUTTON , clickedLocation ) )
    {
      leds.setState( LIGHTS_OFF );
    }
    else if ( button.pressed( LIGHTSAUTO_BUTTON , clickedLocation ) )
    {
      leds.setState( LIGHTS_AUTO );
    }
    else if ( button.pressed( BL_SLIDER_AREA , clickedLocation ) )
    {
      static uint16_t oldLocation;
      if (  clickedLocation.y != oldLocation )
      {
        tftBrightness = map( clickedLocation.y , BL_SLIDER_YPOS, BL_SLIDER_HEIGHT + BL_SLIDER_YPOS, 100, 0 );
        preferences.putFloat( "tftbrightness", tftBrightness );
        oldLocation = clickedLocation.y;
      }
    }
    else if ( button.pressed( EXIT_BUTTON , clickedLocation ) )
    {
      ledcWrite( TFT_BACKLIGHT_CHANNEL, 0 );
      tftClearScreen = true;
      tftState = normal;

  }
}

void drawMenuButtons() {
  tftButton::button_t tempButton;

  tempButton = LIGHTSON_BUTTON;
