user31028: 
I am able to send text from the Arduino wirelessly to RPi.  I am now trying to send the sensor data I'm measuring to the Pi.  This is what I have below:

int moisture = A0;
int temp = 3;

//Skipping the setup and reading of the values

radio.write(&moisture);
radio.write(&temp);

//the above couple lines is where I start having trouble.  The RPi will spit output a seemingly random selection of numbers


user3917: As you haven't said or shown which NRF24L01 library you are using, one can't say for sure what the problem is, but in some NRF24 implementations, the write() method accepts (or requires) a second parameter, len, giving the number of bytes to be sent.  If the library you're using doesn't require that parameter, it could be defaulting it to some value, or could be treating the buffer as a string, to be terminated with a null byte.
Either of those cases could produce erratic results.
Instead of leaving off the second parameter, specify it.  For example:
radio.write(&moisture, 2);
radio.write(&temp, 2);


31028: <blockquote>
  <p>I am able to send text from the Arduino wirelessly to RPi.  I am now trying to send the sensor data I'm measuring to the Pi.  This is what I have below:</p>
</blockquote>

<pre><code>int moisture = A0;
int temp = 3;

//Skipping the setup and reading of the values

radio.write(&amp;moisture);
radio.write(&amp;temp);

//the above couple lines is where I start having trouble.  The RPi will spit output a seemingly random selection of numbers
</code></pre>
 3917: <p>As you haven't said or shown which NRF24L01 library you are using, one can't say for sure what the problem is, but in some NRF24 implementations, the <code>write()</code> method accepts (or requires) a second parameter, <code>len</code>, giving the number of bytes to be sent.  If the library you're using doesn't require that parameter, it could be defaulting it to some value, or could be treating the buffer as a string, to be terminated with a null byte.</p>

<p>Either of those cases could produce erratic results.</p>

<p>Instead of leaving off the second parameter, specify it.  For example:</p>

<pre><code>radio.write(&amp;moisture, 2);
radio.write(&amp;temp, 2);
</code></pre>
