The code is not clear in the image. But As I can see, your code is not indented properly in while loop.
print("This is the value", data["value"]) where you have only used two spaces while the if condition above the print statement has four spaces.
Check this thread Error at coding for sending SMS
Thank you so firstname.lastname@example.org
space was the mistake i done there…