Python code ERROR temp LM35

Hello, I have written a code of temp measuring system using LM35 in python in ubuntu but there is an SYNTAX ERROR popping up .I have checked the SYNTAX multiple times but it is still giving that error
H

ere’s my complete code

1 Like

@rajputsafal27

You have missed to add closing ) on the line above it.

Add it and your code should run.

The error is in the line:
response = sms.send_sms("The Current Temperature is: " + str(Temperature)
You have missed the closed paranthesis ‘)’ in the above line of your code.
Once you add the closed paranthesis ‘)’ to your code it will work fine .

under the If statement you have not closed the response, it should be
response=sms.send_sms("The Current Temperature is: " + str(Temperature))
There is infact 2 closing brackets at the end which is why i assume you got the syntax error