A motion detector sketch for the LightBlue Bean (http://punchthrough.com/bean/)