Updated with temperature sensing