Could it be that the tilt switch needs to be de-bounced? I believe they are mechanical (tilt ball switch).