 
     // update LED. Off with connected antenna, 3 
     if (antennaStatus == 3) {
-      digitalWrite(LED_BUILTIN, LOW);
+      //digitalWrite(LED_BUILTIN, LOW);
       digitalWrite(A1, LOW);
     } else {
-      digitalWrite(LED_BUILTIN, HIGH);
+     // digitalWrite(LED_BUILTIN, HIGH);
       digitalWrite(A1, HIGH);
     } //endif antenna status
   }
+  
+  photoTransistorValue = readPhotoTransistor();
+  if (photoTransistorValue != lastPhotoTransistorValue) {    
+    currentColor = 99;
+    //lastLoopSatsInView = 99 ; // this keeps the LCD red if a ptrans is not present. dislike.
+    lastPhotoTransistorValue = photoTransistorValue;
+  }
 
 // check for watchdog timer reset
 wdt_reset();

        updateLcdText( 0, "                ");
        updateLcdText( 1, "GPS Rx Failure  ");
        TinyGpsPlusPlus::smartDelay(2000);               // wait for two seconds
     }

    // pause main loop for a third of a second

  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) {
