i want write program for sound sensor with a timer
i try many time still not working, can some 1 give me some idea
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