Hi,
Thank you for posting your query.
Kindly follow the steps provided below to resolve your issue.
The sensor manager object provides access to the sensors that are available for your use.
To use the Sensor API, you must first call the COM CoCreateInstance method to create an instance of the sensor manager object and retrieve a pointer to its interface, named ISensorManager. The sensor manager maintains the list of available sensors. You can use ISensorManager to call methods that retrieve groups of sensors by category or by type, or you can call a method to retrieve a particular sensor by using its unique ID. The sensor manager also enables you to register to receive an event that notifies you when a new sensor has been connected to the platform.
Go to this link for your reference and other troubleshooting procedures https://learn.microsoft.com/en-us/windows/win32/sensorsapi/the-sensor-manager
-------------------------------------------------------------------------------------------------------------------------------
If the answer is helpful kindly click "Accept as Answer" and up vote it.