Is the buzzer active or passive?
Could you post all your code? I see the variable buzzer but not its defination.