Hi,

Describe how do you drive the LED and the buzzer.
Post a small schematic with components type and values.

- Voltage on the VDD pin if the PIC.
- Voltage on the emitter of the transistor.
- Type of transistor.
- Type of buzzer.


Also post a complete small program showing the problem.

Best regards,

Luciano