Read a freqency from an analog pin

OK.I want to use a library, or a function wich can read a frequency. After reading i want to separe in 2 frequences with if conditional. That is all. :stuck_out_tongue: