For the temp gauge on the cluster.
Put a pin in the plug that connects the sender and earth it out on the block. If the gauge moves all the way to full then you know the cluster gauge is working properly. If it doesn't move, than the gauage itself or the wiring is faulty.
I've found when the knock sensor code is thrown, it usually is a faulty knock sensor.