there could be a syntax error before the while loop in the code somewhere
In step 3 , check the line message=…
The error says there is an extra character which cant be seen in the screenshot
@vamsikrishnareddy.ko As the error states, there is an error in line 67. If you look closely, you’ve add an extra " \ " after “str(tele.threshold)+” Remove this and your code will work fine.