Arduino Script using BMA180 in a tilt sensing appliction