Interpreting Sensor Data

Now that we understand how to get data from a sensor, we must do something meaningful with the data. The data we get, however, will depend on which sensor we’re getting the data from. Some sensors are simpler than others. In the sections that follow, we will describe the data that you’ll get from the sensors we currently know about. As new devices come into being, new sensors will undoubtedly be introduced as well. The sensor framework is very likely to remain the same, so the techniques we show here should apply equally well to the new sensors.

Light Sensors

The light sensor is one of the simplest sensors on a device, and one we’ve used in our first sample applications of this chapter. The sensor gives a reading of the ...

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.