The sound sensor has a thin piece of material called a diaphragm that vibrates when hit by sound waves (similar to how your eardrum vibrates when hearing sound). The vibration of the diaphragm is converted by the sensor into an electrical signal that is sent to the LEGO brick, which knows that a sound has been heard.