help for programming for sensor

:%Hi all

i want write program for sound sensor with a timer

i try many time still not working, can some 1 give me some idea

Thank alot

step flow

1 . if mic sensor get a level sound than trigger timer 5 sec.
2. if mic sensor not detect any sound within that 5 sec ,reset the timer
3.if mic sensor detect sound with in 5 sec. than trigger a switch or alarm LED or speaker 2 sec and stop 1 sec ,repeat 3 time
4 . go back step 1 and keep monitor that for 6 hours

i try many time

So, where is something that you tried? What did it do? What did it not do? If you are looking to hire someone, go to Gigs and Collaboration.

i try many time still not working, can some 1 give me some idea

You could give us some idea of what hardware you're using, what you have tried, what it did, what it didn't do etc.