Water Level Horizontal Sensor Esp8266

Hello I find this in a articule made by you peteknight
And I gonna work with that.

The program flow should be something like this:

Try to connect to Wi-Fi a set number of times, with a short delay between each.
If not connected to Wi-Fi then go to sleep.
If connected to Wi-Fi then try to connect to Blynk.
If not connected to Blynk then go to sleep.
If connected to Blynk then take temperature readings.
Upload temperature readings to Blynk.
Go to sleep.