update script for monitoring switch temparature