Monitoring the temperature of the exhaust gases