If it's moving around within a few seconds then it's really likely to be an electrical fault as I doubt your engine can change temperature that fast.
And faults like dodgy earths can easily clear up after a while because things get hot and expand and make a better connection.