Read the forum guidelines, it explains how to use code tags.
What part is not working? What sensor are you using? Is the clap soft or har4d? How far are you from the sensor when clapping? Which Arduino are you using?
Eu encontrei pelo menos 5 erros no seu codigo:
I found at least 5 errors in your code:
1 Void setup() with a uppercase V;
2 pinMode(ledpin, OUTPUT); ledpin pin not defined;
3 PinMode(soundpin, INPUT); soundpin pin not set;
4 PinMode(soundpin, INPUT); with a uppercase P;
5 Void loop () with a uppercase V;
I don't know about that sensor, but il you clap during that 0.5s delay, fore sure it's not heard. And that delay is about 100% of total time in loop, so...
Let’s confirm the LED is properly installed in the breadboard (looks like it might be installed backwards).
Try toggling the LED with the Blink sketch that is in the IDE examples.
The LED should be wired similar to LED D2 in the image below.
Five days later. Assume we've not been able to follow along with what you have tried, what your results were and what your code might have become during that time.
Use a few more of your lifetime supply of key strokes and tell us what's up.
How long is the led meant to stay on for after you clap? How many claps to make the led come on? Just one?
Or is it supposed to be clap hands to make led come on then clap again to turn it off?