The code is only working for the mic. Other sensors are not getting collected. The state is unknown as well, therefore discover is not getting triggered.