Code for temperature sensors.