 const int capacitorChargePin2 = 4;
 
 const int imuRate = 10; /* sampling rate in Hz */
-const float capacitorRate = 1; //dedicate to capacitor every  10 seconds
+const float capacitorRate = .5; //dedicate to capacitor every  10 seconds
 const int muxRate = 10;
 
 int muxChoice = 0;

      break;
    }
  }
  long startTime = micros();
  looptimestart = micros();
  int index = 0;


    switch(muxChoice){
    case 0: 
      p("{\"temperature\": %d, \"time\": ", muxVal);
      Serial.print(millis());
      Serial.println("}");
      break;
    case 1: 
      p("{\"conductance\": %d, \"time\": ", muxVal);
      Serial.print(millis());
      Serial.println("}");  
      break; 
    case 2: 
      p("{\"pressure\": %d, \"time\": ", muxVal);
      Serial.print(millis());
      Serial.println("}");
      break;
