This is a Blynk forum and your question seems more like a general programming one.
Regardless, when posting code here it needs to be properly formatted… Please repost your code properly formatted as directed.