# Sensor
- [Introduction](#section11660541593)
- [Directory Structure](#section44981327519)
- [Usage](#section1581412211528)
- [Repositories Involved](#section96071132185310)
## Introduction
Start sensor, vibrator and other small device services.
## Directory Structure
The sample code for importing the start module is as follows:
```
/base/sensors/start
├── etc
└── init # Place the startup file for the hsensor process
```
## Usage
The repository places the startup file of the sensors process to start sensor and small device services such as vibrator. Sensor and small device services such as vibrator share the sensors process.
Service code for sensor and small device services such as vibrator is [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) and [sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice) part compartments, respectively. when selecting a part, the product may select either or both parts as needed. This requires that the startup file of the sensors process be placed in a separate start-up part compartment, shared by the two parts, so that any part silo with the starter part can start the sensors process and prevent duplicate start-up of the process.
Service startup profiles for sensor and small device services such as vibrator are in the sa_profile directory of [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) and [sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice) part, respectively.The resulting system/profile/sensors.xml file is compiled, as follows.Of these, 3601 and 3602 serve the sensor and vibrator.If only the [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) code is compiled, the sensors.xml file contains only the configuration items for the 3601 service. The sensors.xml file starts the service when the sensors process is started.
```
sensors
libmiscdevice_service.z.so
libsensor_service.z.so
3602
libmiscdevice_service.z.so
true
false
1
3601
libsensor_service.z.so
true
false
1
```
## Repositories Involved
Pan-sensor subsystem
[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)
[sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice)
**sensors\_start**