SensorEvent is the data structure that contains the information that is passed to an app when a hardware sensor has information to report. The data members of the SensorEvent are:
accuracy: The accuracy of the event. Can have the following values:SensorManager.SENSOR_STATUS_ACCURACY_HIGHSensorManager.SENSOR_STATUS_ACCURACY_MEDIUMSensorManager.SENSOR_STATUS_ACCURACY_LOWSensorManager.SENSOR_STATUS_UNRELIABLEsensor: An instance of the Sensor class that generated the SensorEvent.timestamp: The time in milliseconds when the SensorEvent occurred.values: An array of values that represent sensor data.Source code: SensorEvent.java