This tutorial by Dr. Graeme Faulkner(retired Tasmanian Engineer/Teacher) walks students step-by-step through writing a sound sensor switch block program for an acoustic candy jar alarm.
http://www.drgraeme.net/DrGraeme-free-NXT-G-tutorials/Ch20/Ch20V1G/defau... [1]