Best way to get sensor data from NR on Android to NR on RPi

Could you provide info or a reference for how you accessed the phone sensor data (android?) using NR? I wish to report weather data, specifically wind data, from a boat on a mooring. I can get the weather data from the anemometer using NR running on Android. But, as the vessel rotates on the mooring, the wind weather data needs to be adjusted to reflect the boat's orientation. Thanks in advance.