FHT to frequency

Hello,
I am trying to get the FHT converted to frequency. I saw that the formula was k*(samples/FHT_N) but I can't seem to get what I want...
1. Does k need to be unsigned? I am getting negative values when ever I try to print it out to the serial monitor.
2. How do you find out what the sampling rate is? I have read that you need to look at the prescalar but I am not sure what that is.
I am just trying to write a high on a digital pin when a certain frequency is present. Any help will be appreciated!
Also, will I need to set a magnitude threshold somehow? I only want the high on the digital pin when there is an intentional sound.
(I just realized that I did not bias the signal so that maybe a cause for off numbers.)
I am trying to get the FHT converted to frequency. I saw that the formula was k*(samples/FHT_N) but I can't seem to get what I want...
1. Does k need to be unsigned? I am getting negative values when ever I try to print it out to the serial monitor.
2. How do you find out what the sampling rate is? I have read that you need to look at the prescalar but I am not sure what that is.
I am just trying to write a high on a digital pin when a certain frequency is present. Any help will be appreciated!
Also, will I need to set a magnitude threshold somehow? I only want the high on the digital pin when there is an intentional sound.
(I just realized that I did not bias the signal so that maybe a cause for off numbers.)