can a bad knock sensor cause the a/c to not blow cold?
No. Knock sensor retards engine timing. Nothing to do with the A/C system.