gratefulfrog_Car/Arduino/Tests_and_Old/RemoteObserver-master/RemoteController/Sensors.pde
//Here are the sensor events

void onAccelerometerEvent(float x, float y, float z)
{
  accelerometer.set(x, y, z);
}

void onGyroscopeEvent(float x, float y, float z)
{
  gyroscope.set(x, y, z);
}

void onRotationVectorEvent(float x, float y, float z)
{
  rotX = x;
  rotY = y;
  rotZ = z;
}

void onLightEvent(float v)
{
  light = v;
}

void onProximityEvent(float v)
{
  proximity = v;
}