Mechatronic flow sensor for high temperatures