Ultrasonic sensor with arduino uno and esp8266

Read this link…

Scenario 3 applies to your code.

In future, please DO NOT post screenshots of your error messages or code. Instead, create a “Need help with my project” category topic and follow the instructions about how to post code etc.

Of, better still, do a quick search beforehand and find the answer to your problem before creating a post.

Pete.