   digitalWrite(SEGMENT_G_PIN, SEGMENT_ON);
   digitalWrite(SEGMENT_DP_PIN, SEGMENT_ON);
   
-  if (COMMON_ANODE_LED) {
-    // LED display with common anode:
-    DIGIT_OFF = 0;
-    DIGIT_ON = BRIGHTNESS;
-    SEGMENT_OFF = HIGH;
-    SEGMENT_ON = LOW;
-  } else {
-    // LED display with common cathode:
-    DIGIT_OFF = 255;
-    DIGIT_ON = 255 - BRIGHTNESS;
-    SEGMENT_OFF = LOW;
-    SEGMENT_ON = HIGH;
-  }
-  
   startModeMillis = millis();
   lastReadingMillis = startModeMillis;
   mode = TEMPERATURE;

  const long now = millis();
  if (now - lastReadingMillis > READ_DELAY_IN_MILLIS) {
    lastReadingMillis = now;
    int errorCode = sensorDht.read22(DHT22_PIN);
    temperature = sensorDht.temperatureInt10;
    humidity = sensorDht.humidityInt10;
    return errorCode;
  }

// Temperature values' samples and result output:

//  temperature = 0;
//  humidity = 0;
  
    return errorCode;
}

void setErrorCode(int errorCode) {
