   }
   return s;
 }
-void setSvrAddr(String s) {
+void setSvrAddrP(String s) {
   File f = SPIFFS.open("/svrAddr.txt", "w");
   f.println(s);
   f.close();
 }
-String getAnalogSensor() {
+String getAnalogSensorP() {
   analogSensor = ANALOG_SENSOR_NONE; // the default is...
   GOT_ANALOG_SENSOR = false;         // ...no sensor
   String s = "";
   File f = SPIFFS.open("/analogSensor.txt", "r");
   if(f) {
+    GOT_ANALOG_SENSOR = true;
     s = f.readString();
     s.trim();
     f.close();
   }
   return s;
 }
-void setAnalogSensor(String s) {
+void setAnalogSensorP(String s) {
   File f = SPIFFS.open("/analogSensor.txt", "w");
   f.println(s);
   f.close();

    SPIFFS.remove("/cloudShare.txt");
  }
}
String getSvrAddr() {
  String s = "";
  File f = SPIFFS.open("/svrAddr.txt", "r");
  if(f) {

  }

  // persist the config
  setSvrAddrP(svrAddr);
  setCloudShare(cloudShare);

  // TODO some way of verifying if server config worked
