Internal three-axial accelerometer and gyro sensor