added gravity and linear acceleration sensor