🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
The next step is to add a new sensor or controller connected to your device.   # 2.1 Add a new sensor   As shown in Pic3, go to ***My Devices -> Sensors&Controllers ->Sensors, ***and then click on ***Add*** button to create a new sensor.        ![](http://upload-images.jianshu.io/upload_images/5875248-1e9771d04949de85.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.1 Add a new sensor   ![](http://upload-images.jianshu.io/upload_images/5875248-37ae7eb39f7f5a76.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.2 Create a new sensor   ID: The ID of the new sensor. It is unique for each sensor. Type: The type of the new sensor. Unit: The unit of the measurement. Device: Select the device which the sensor to be connected to. Name: The name of the new sensor. Data Conversion: To calibrate your sensor’s measurement. You can fill in the Coefficient and offset if applicable. Picture: Upload the picture of your sensor. Public: If your sensors are public, other users can also view them and their measurement. Normal range: The normal range of the sensor’s measurement. You can set it according to your actual need. Overrange alarm: Turn it on and you will receive the alert by SMS or email when the sensor’s measurement is out of the range. Data post period: The system indicates that the sensor is OFFLINE if it does not get the data posted by the sensor within every data post period set here. Remark: Remark of the sensor. # 2.2 Add a new controller   As shown in Pic4, go to ***My Devices -> Sensors&Controllers ->Controllers, ***and then click on ***Add*** button to create a new controller.   ![](http://upload-images.jianshu.io/upload_images/5875248-53ae428d7985c035.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.3 Add a new controller    ![](http://upload-images.jianshu.io/upload_images/5875248-63471d8a768abb98.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.4 Create a new controller   Fill in the related information and then click on Save. The related parameters are explained as follows: ID: The ID of the new controller. It is unique for each controller. Name: The name of the new controller. Device: To select the device which the controller is connected to. Type: The type of the new controller, which can be switch control or numerical control. For switch type, 0 or 1 is used to control the switch. While for numerical type, the controller status is adjusted by different numerical values. Max-value: The max-value for numerical type. Min-value: The min-value for numerical type.