Instructions
The forever loop repeatedly reads the accelerometer strength and if it exceeds the
baseline reading by 50, the alarm is sounded.
The functions red and green set the RGB LED color to red or green, by writing a 1
or a 0 to the appropriate pins controlling the RGB LED red and green channels.
Try tweaking the number 50 in the if block, to alter how sensitive the alarm is.
Page 11