Sound monitor: Switch background variable threshold This is an example of a sound monitor which switches background to display a warning message when the value of loudness detected by the microphone reaches a set level. The level of loudness which triggers the warning message being displayed can be altered using the 'Threshold' variable. This program requires access to a microphone.