Changed the writing to the buzzer to analogWrite. This enhances the sound.