Baby Monitor Which Listens For Specific Tones/Frequencies From An Alarm

I’m trying to build a custom baby monitor for my wife who is Deaf. It needs to detect loud noises and listen for a specific series of tones from a feeding pump our daughter uses. It will then send a radio signal to the other room to trigger a bed shaker.

I do have a loop which samples the MAX4466 microphone and uses a “peakToPeak” calculation to determine volume, which I can use to trigger for loud noises (pasted below). However, I cannot figure out how to determine the frequency of a noise sample. I’ve tried searching for other sketches and tutorials that would work, but haven’t found anything. The feeding pump, when it has an error puts out a series of tones which alternates between 4.1kHz and 2.1kHz. What I wanted to do is see if the first tone is sounding, and then if the second tone shows up within a couple seconds afterwards, then it would trigger sending the signal to the other device.

I’ve tried for two days now to find a way to determine the frequency, but haven’t figured it out. Any help would be GREATLY appreciated. The closest I was able to get was this: http://www.instructables.com/id/Arduino-Frequency-Detection/, but when I use this script, the Arduino can no longer do analogRead() to get the status of various setting knobs and such I have on the device.

Thanks in advance for any help you can provide.
The script I use to get the sound level / loudness is:

#define micPin 0 // Microphone
const int sampleWindow = 96; // Sample window width in mS (50 mS = 20Hz)
unsigned int sample;
while (millis() - startMillis < sampleWindow) {
sample = analogRead(micPin);
// Check peakToPeak mins and maxs
if (sample < 1024) {
// toss out spurious readings
if (sample > signalMax) { signalMax = sample; } // save just the max levels
else if (sample < signalMin) { signalMin = sample; } // save just the min levels
}
}
peakToPeak = signalMax - signalMin; // max - min = peak-peak amplitude

I would use two LM567 tone decoding chips and feed the tone detected output into a digital input on the Arduino. It is by far the simplest way of doing this project.

I probably should clarify that I'm a completely newb and I tend to learn best by looking at examples.

I've purchased several LM567, but now I have no idea how to use them. I've searched for a tutorial, but I can't find anything that demonstrates how it works for someone who, like me, is clueless. Do you have any links to simple tutorials or explanations I can review to learn how to use them?

Thank you.

Always start with the data sheet for the chip. There you will find a typical circuit and how to calculate the components for the frequencies you need.