At least for accelerometer it may sometimes help to turn off the device, remove the battery for a minute or so, reinstall, restart. Worked for me a couple of times (well, that particular accelerometer problem also stopped happening after one of the firmware upgrades).