A better idea would be a system that would go off if the bike is moved more than say 0.5 m. That way, you wouldn't get false alarms if someone else locks up to the same rack and jostles the bike.
------------------------------------------
"Come to think of it, there are already a million monkeys typing on a million typewriters, and the Usenet is NOTHING like Shakespeare.
- Blair Houghton