Getting SyntaxError : invalid syntax

This is the problem

close the bracket at print
print("Sensor value is: ",str(data['values]))
in line 14
you want close the bracket just what i had helighted

1 Like

Indentation is not proper. The try keyword should have same indentation as that of print statement.And also try closing the bracket in the line above try keyword.

1 Like

Thank you very very much…:grinning:

Thank you for your help…:grinning:

same here also but in email code

i did not understand this output,can anybody please explain?