Objective 2 added to Objective 1 code

Has fail safe for high temperatures