Added the global variable to temperature program