Create a new sensor of the type specified.
#include <sensor/libsensor.h>
sensor_t* sensor_new(sensor_type_e sensor_type)
BlackBerry 10.0.0
The sensor type you wish to create a handle for. Sensor types are defined in sensor/sensor.h.
sensor_t* A pointer to the sensor if successful, otherwise NULL. You'll need to pass this handle to many of the sensor functions.