Invalid syntax: try

I’ve already posted this question, but I didn’t get ant response. So here I’m still posting this query.
In project 9 I’ve written the code as it is with indentation, but I’m still getting this error. Below are the snaps:

Hi @officialvaibhav44,

Apologies for delaying the response.

From the Screenshots you have shared, I can see that on line 15 you are missing the closing bracket, which is ). This is how line 15 should look like;

print("Sensor value is: " + str(data['value']))
try: 

Add the closing bracket and your code should run. Hope this helps

Such a rookie mistake.
Thankyou for the help.