 
 void displaySensorDetails(void) {
   sensor_t accel, mag, gyro, temp;
-
   lsm.getSensor(&accel, &mag, &gyro, &temp);
 
   Serial.println(F("------------------------------------"));

void mpr_setup() {
  // needed to keep leonardo/micro from starting too fast!
  while (!Serial);

  Serial.begin(9600);
  Serial.println("Adafruit MPR121 Capacitive Touch sensor test"); 
  
  // Default address is 0x5A, if tied to 3.3V its 0x5B
  // If tied to SDA its 0x5C and if SCL then 0x5D
  if (!cap.begin(0x5A)) {
    Serial.println("MPR121 not found, check wiring?");
    while (1);
  }
  Serial.println("MPR121 found!");
}



}


float clamp(float value, float min_, float max_) {
  return (value < min_) ? min_ : (value > max_) ? max_ : value;
}
