Check cooling system water levels when cold. If you are low on coolant then the temp gauge may fluctuate. Is your heater blowing out warm or cold air as if it starts to blow cold air when it is set to hot then you are seriously risking overheating the engine.
Could just be a poor wiring...