Detecting a tone with a microphone

Hardware is probably easiest. A Phase Locked Loop (PLL) does what you want. A Google search will provide a bunch of info for you. The 74HC4046 should be a good choice for you. Easy to get and relatively easy to use.