I'm not sure, because i don't know what a broken knock sensor can do, but i don't think it will pu tyour idle up like that.

I think you have a vacuum leak somewhere too, spray break parts cleaner and see if it changes your idle.