 /*
  *
- * Author: Jeffrey Leung
- * Last edited: 2016-03-19
- *
- * This Arduino sketch receives communication through Bluetooth relating
+ * This Arduino sketch receives data through serial communication relating
  * to whether or not the sensor systems are activated, and alerts the user if
  * a user is present and the sensors return the presence of an item.
  *

  // Divided by 2 because the sound travels twice the distance
  // Speed of sound is 343m/sec = 0.0343cm/μs = [1/29.1] cm/μs
  distance = (distance/2) / 29;
  //Serial.println(distance);
  return distance < thresholdProximity;
}


  digitalWrite(pinPowerLED, HIGH);
}

void loop() {
  ppad.flush();
  delay(100);
