ADXL335 breakout board as a tilt switch

google "adxl335 arduino" and look at the various articles it throws up?