From your description, it sounds like a simple voltage divider would solve the problem. A 2:1 divider will present about 1.2V to the MCU input in the idle state and 3-3.5V when it receives a clap signal.
I have further analysed the circuit.
I am posting the circuit block diagram of the arrangement.
I have reaslied that the ground of Clap switch circuit and Microcontroller circuit are not common. That might be the reason why controller gets 2.3V in normal state. Am I right?
I thought to make the ground common for both the circuit. But, I dont know what will be its effect on the power supply section of both the circuits.
Please tell me, if it has any effect on the power supply sections of the individual circuits.
It;s hard to be perfectly sure from just a block diagram, but it seems to me that you don't have to use separate rectifier-filter supplies for the uC and the clap switch. If you need a supply higher than 5V for the clap switch circuit, you can take it from the rectifier output of the uC power supply before it passes through the 7805 regulator. Then you'll have a common ground for both circuits.
I am turning the flag on in the ISR.
When I clap near clap switch, relay triggers but does not return back to its original position.
Ideally, as per program, there should be two sounds in relay operation....
1. Relay make and
2. Relay break
But, while operating using clap switch, I hear only one sound from relay.
Then after next clap, I hear one more sound.
Any idea?