Added SoundSensor Code

added code to raise flag when magnetometer beeps

reordered functions for compiler.