Code isn't working without connected Blynk

@saurabh47 study this post in detail Check connection status in loop and reconect