   return valueTimeZone;
 }
 
+
 int readBrightness() {
   int valueBrightness = readPotentiometer(potentiometerBrightness);
   valueBrightness = map(valueBrightness, 0, 1024, 0, 256);     // scale it to use it with rgb (value between 0 and 255) 
   valueBrightness = constrain(valueBrightness, 0, 255);
   return valueBrightness;
+}
+
+
+int readPhotoTransistor() {
+  valueLightLevel = analogRead(photoTransistor);
+  valueLightLevel = map(valueLightLevel, 0, 1023, 0, 4);     // scale it to use it with rgb (value between 0 and 2) 
+  valueLightLevel = constrain(valueLightLevel, 0, 3);
+  return valueLightLevel;
 }
 
 void saveSettings(const int eepromAddress, const int newValue) {

  lcd.begin(16, 2);
  // boot backlight is blue, "get" is from eeprom
  brightness = getBrightness() ;
  Adafruit::setBacklight(0, 127, 255);
  // Print bootup screen to LCD.
  displayBootScreen();


  lcd.print(F(JEMMA_VERSION));
  lcd.setCursor(0, 1);
  lcd.print(F(JEMMA_COPYRIGHT));

  //delay(1500);  
  for (int i = 0; i < 15; i++) {
    noFix = !noFix;
    digitalWrite(A1, noFix);
    digitalWrite(LED_BUILTIN, !noFix);
    delay(100);
  }
  noFix=0;
}

void configurationMenu() {
