改成在service中监听传感器，注册BroadcastReceiver，未测试