   pinMode(SEGMENT_F_PIN, OUTPUT);
   pinMode(SEGMENT_G_PIN, OUTPUT);
   pinMode(SEGMENT_DP_PIN, OUTPUT);
-  
+
   if (COMMON_ANODE_LED) {
     // LED display with common anode:
     DIGIT_OFF = 0;

      startModeMillis = millis();
      lastReadingMillis = startModeMillis;
      mode = TEMPERATURE;
    }
  }
  previousMercurySwitchIsOn = mercurySwitchIsOn;
  
  // Read data from sensor
  errorCode = readData();
  if (errorCode < 0) {

    SEGMENT_ON = HIGH;
  }
  
  turnOffAllLedPins();
  
  if (AUTO_START) {
    previousMercurySwitchIsOn = false;
