Smart thermal flow sensors