Hello , @swaroopsiby
@ravi.ujjwal
Please see the syntax and indentations are correctly placed in the code and do share the exact code snippet with us so we can identify the error ,
Thanks for connecting with us.
Regards,
Lokesh Agarwal
Hey @swaroopsiby the error in this code can be removed by going through the code snippet below :
Your Code should look like this:
message = “Alert! Sensor value has exceeded” + str(conf.threshold) +
".The current value of the sensor is " + str(sensor_value)
this way it will be error-free, and the program will execute successfully if no other error is found.