Series connecting buzzer, led and vibration sensor

Hello!
We connected a vibration sensor as an input and a led,buzzer as an output.
We have to make 8 sets of this different input and output.We have 1set now in this coding though.
For the coding, we made it as a series connection so the led and the buzzer is connected with each other in the coding and as an output with the name under ledPin.
However, we encountered a problem when we tried to set the buzzer a certain note like C4 on the piano.
We tried most of the ways on the internet to set the buzzer as a note but all failed..
Is it because we tried to series connect the buzzer and the led??
We wondered if it is the matter of the connection of the inputs and the outputs. we are very beginners at these things.. :cry: :fearful: :cry:

Please have a look at our connection!
I have already asked for the coding problems..

Sorry, but that picture is no use. We cannot see all the components or what they are. We cannot see clearly what is connected to what.

Please post a schematic diagram. Hand drawn on paper is ok. Ask your teacher how to do this.

Also post your sketch, using code tags. Read the form rules post to find out how to do that.