   }
   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();

  toSend += "</li>\n";
  toSend += "\n<li>Data sharing server address: "; toSend += svrAddr;
  toSend += "</li>\n";
  toSend += "\n<li>Analog sensor type: "; toSend += analogSensor;
  toSend += "</li>\n";



  // read persistent config
  SPIFFS.begin();
  svrAddr = getSvrAddrP();
  analogSensor = getAnalogSensorP();

  // start the sensors, the DNS and webserver, etc.
  startPeripherals();
