The temp sensor probably won't make it rev up like that but can make it run rich or flood when starting. 3 most likely causes.
IAC valve sticking (clean carbon out or replace)
TPS reading wrong voltage (replace)
Mass Air Sensor intermittent (replace)
P.S. - check for any vacuum leaks and make...