Sounds like you are using direct pin manipulation… that will work but I have found it only functional for simple tasks.
Check out the 2nd half of this post about that…
Using virtual pins will greatly increase the functionality and reliability of sensors and controls.
http://help.blynk.cc/blynk-basics/what-is-virtual-pins