AVD cannot test a lot of Android features, especially sensors.
In case the USB is unavailable for debug in physical device, you can:
- change to a computer with non-blocking USB, and debug it with real device.
- make a .apk and install in a real device & diagnose with on-screen debug messages
- enable "ADB over Network", then you can debug the app with Bluetooth / Wi-Fi network