Henrique wrote:
Can I connect the piezo sensor directly to pins 7 and 8 from a female DB9 connector?
Yes if your piezo sensor works as a simple on/off switch.
Other option - sound/noise sensor that is supported by Windows 7 (i.e. available under Start->Control Panel->Hardware and Sound->Location and Other Sensors). Unfortunately I know none of them.
]]>