Application of Tilt Sensor in Medical Device