A dual measurement method of strain and temperature