Ultrasonic flowmeter with integrated temperature measurement