Detect a particular frequency?

Well, I have to point my robo car towards the direction of the chosen frequency and then go towards it. But I'm getting maximum magnitude for the particular frequency when the orientation of mic is perpendicular to the source of sound. Hence my car goes in the wrong direction