If your like me and find the decimal point in the return a bit confusing you can change the line
os.system('~/.TRIGGERcmdData/sendresult.sh ' + 'Temp={0:0.1f} Humidity={1:0.1f}'.format(t,h))to
os.system('~/.TRIGGERcmdData/sendresult.sh ' + 'Temp={0:0.0f} Humidity={1:0.0f}'.format(t,h))if you wish the return to send a Fahrenheit value instead of Celsius you can add the line
t = (t* 1.8) + 32just after the line
#Print Temperature and Humidity on Shell window