Might want to change this line
> TEMP=$(sensors -u | grep temp1 | tail -n1 | awk '{print $2}')
to
TEMP=$(sensors -u | grep temp1_input | tail -n1 | awk '{print $2}')
I think the suggested script might return the critical temperature
rather than the actual temp of the CPU ;-)
Chris