Took me a minute at most to have my Android phone reporting sensor data back to my PC
Inc setting up database and webserver on your PC - impressive
No, that was written long ago. I just display and discard the data received so all I had to do was start a new AI2 project, add the sensor, create the 'When' block, generate and save the .apk, side-load that to my phone and it just worked.
The data sent is simply a POST to http://www.xxx.yyy.zzz:80/setvalue
with the posted data being tag="accelerometer"&value="1.23,4.56,7.89"
so not hard to deal with. One can even have it so the URL includes all the data so no need to handle the posted data, just parse the URL.