         analogSensor = ANALOG_SENSOR_PRESSURE;
         GOT_ANALOG_SENSOR = true;
       } else if(argVal != "analog_none") {
-        Serial.println("unknown analog sensor type");
+        dln(analogDBG, "unknown analog sensor type");
       }
       toSend += "<h2>Added analog sensor config...</h2>";
       toSend += "<p>...for ";

  return;
}
void getPH(float* pH) {
// this is our I2C ADC interface section
// assign 2 BYTES variables to capture the LSB & MSB (or Hi Low in this case)
  byte adc_high;
  byte adc_low;
  // we'll assemble the 2 in this variable
  int adc_result;
  
  Wire.requestFrom(pH_Add, 2); // requests 2 bytes
  while(Wire.available() < 2); // while two bytes to receive
  adc_high = Wire.read();      // set...
  adc_low = Wire.read();       // ...them
  // now assemble them, remembering byte maths; a Union works well here too
  adc_result = (adc_high * 256) + adc_low;
  // we have a our Raw pH reading from the ADC; now figure out what the pH is  
  float milliVolts = (((float)adc_result/4096)*vRef)*1000;
  float temp = ((((vRef*(float)pH7Cal)/4096)*1000) - milliVolts) / opampGain;


/////////////////////////////////////////////////////////////////////////////
// pH sensor stuff //////////////////////////////////////////////////////////
byte pHAddr;  // loaded from SPIFFS
int pH7Cal; // assume ideal probe and amp conditions 1/2 of 4096 (default value) loaded from SPIFFS
int pH4Cal; // ideal probe slope -> this many 12bit units on 4 scale (default value) loaded from SPIFFS
float pHStep; // probe slope loaded from SPIFFS
const float vRef = 4.096; // our vRef into the ADC wont be exact
// since you can run VCC lower than Vref its best to measure and adjust here
// If you change from 4.096 then update the pH7Cal checks (25mV from midrange) in probe health calculator!
const float opampGain = 5.25; //what is our Op-Amps gain (stage 1)
boolean GOT_PH_SENSOR = false; // we'll change later if we detect sensor
int getpHraw();
String pHHealth = "Unknown!";

/////////////////////////////////////////////////////////////////////////////
// RC switch stuff //////////////////////////////////////////////////////////
