Fixes some issues with accessing a devices sensors