need help..

'piezoPin' was not declared in this scope..

Obaghi:
'piezoPin' was not declared in this scope..

'yourCode' was not posted in this forum..

See How to use the Forum.

...R

You need to declare ‘piezoPin’ in the scope of where it is referenced.