Version 8: added gyroscope dependency for gravity sensor