Its the thermostat for sure. Hot day (if we ever get one) - stop at traffic lights - needle starts moving up the gauge - start moving again - needle falls. Classic symptoms. Very unlikely to be the sensor - they rarely fail - if you are concerned put a multi-meter across the sensor and see if the resistance changes!