sensorsapi.dll Error in Windows 10 and 11: Windows sensor access errors

A sensor application cannot access rotation or another supported sensor and names sensorsapi.dll.
What this DLL does
This Windows library is associated with the Sensor API used by compatible desktop software.
Start with this check
Check Device Manager and compare a second documented app or built-in feature using the same sensor. Note any approved privacy or policy requirements.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Use the OEM’s approved sensor driver and supported Windows settings. Ask IT about organization-managed sensor access instead of changing policy.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Run a small authorized test and confirm the relevant sensor value updates as expected.
For a related check, see cfgmgr32.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: Microsoft’s Sensor API reference.