1# Pan-Sensor 2 3## Introduction 4 5The pan-sensor service subsystem provides a lightweight sensor service framework, through which you can perform the following operations: 6 7- Query the sensor list. 8- Enable or disable a sensor. 9- Subscribe to or unsubscribe from sensor data. 10- Set the data reporting mode of a sensor. 11 12The following figure shows the architecture of the pan-sensor service framework. 13 14![](figures/en-us_image_0000001106694563.png) 15 16## Directory Structure 17 18``` 19/base/sensors 20├── sensor_lite # Sensor directory 21│ ├── frameworks # Framework code 22│ ├── interfaces # Native APIs 23│ └── services # Code of services 24└── miscdevice_lite # Misc device directory 25``` 26 27## Usage 28 29The following modules work cooperatively to implement pan-sensor capabilities: Sensor API, Sensor Framework, and Sensor Service. 30 31- Sensor API: provides APIs for performing basic operations on sensors, including querying the sensor list, enabling or disabling sensors, and subscribing to or unsubscribing from sensor data. 32- Sensor Framework: manages sensor data subscription, creates and destroys data channels, subscribes to or unsubscribes from sensor data, and implements communication with the Sensor Service module. 33- Sensor Service: interacts with the HDF module to receive, parse, and distribute data, manages sensor services and sensor data reporting, and controls sensor permissions. 34 35## Repositories Involved 36 37**Pan-sensor subsystem** 38 39[sensors_sensor_lite](https://gitee.com/openharmony/sensors_sensor_lite/blob/master/README.md) 40 41[sensors_miscdevice_lite](https://gitee.com/openharmony/sensors_miscdevice_lite/blob/master/README.md) 42 43