Title: Code for temperature measurement