A cost-effective flexible MEMS technique for temperature sensing