Garage Door: Transmit a hex code on the TX pin of ESP-01

You wouldn’t use a loop within the BLYNK_WRITE_DEFAULT() callback.
When BLYNK_WRITE_DEFAULT() fires, you can retrieve the virtual pin number that caused the callback to fire by using int pin = request.pin; and use that to direct your code flow accordingly.

An example of how to do this is here…

Pete.