VirtualWire Guidance

AWOL:
There is no declaration - it is commented-out

Sorry I was "playing" with the code prior to posting. its fixed now.

PaulS:

So, that means... that i (a variable) is for storing something

Yes.

and if it is greater than 100 then increment?

No. It means that if it is less than 100, perform the body of the loop and then increment i.

does that mean 100 bits?

Or elephants or moving vans or bytes.

In the virtual wire usage, i is counting bytes.

Why is an incremented variable needed in this code? I was understanding that char Sensor1CharMsg[4]; stated that there will be 4 characters in the message. If this is true then why he counter?

Why is an incremented variable needed in this code? I was understanding that char Sensor1CharMsg[4]; stated that there will be 4 characters in the message. If this is true then why he counter?

Because the code doesn't know that you are receiving characters. There is this bit of code that is called, after the data has been received, that is printing out the data, one character/byte at a time.

   for (i = 0; i < buflen; i++)
   {
       Serial.print(buf, HEX);
       Serial.print(' ');
   }
   Serial.println();

That makes since. Thank you.