Twilio not send sms

I have executed the program to send sms. But Twilio service did not send sms.
The program did not show any error, but it keeps on running and again it showing
error. I have attached the pic. Kindly help me.

Yes, There is an error in the following bold mar marked line:
response = sms.send_Sms("The current temperature sensor valu is "+str(sensor_value))
This send_Sms method should be all will be in lowercase i.e send_sms

If this suggestion couldn’t resolve your problem then share me the whole coding part.

check your code,

at the line within if statement you have written

response = Sms.send_Sms("The Current temperature sensor value is " +str(sensor_value))

which is wrong, because above the while statement you must have written this
sms = Sms(conf.SID, conf.AUTH_TOKEN, conf.TO_NUMBER, conf.FROM_NUMBER)
Here you are assigning credentials store in file to the variable sms which starts with small “s”
and send_Sms is not any member function, use send_sms.

inshort, change the marked line with

response = sms.send_sms("The Current temperature sensor value is " +str(sensor_value))

now your code will perfectly work.