If that code works using the USB cable and the serial monitor, it will work using bluetooth. No change required other than ensuring you are using a proper terminal programme instead of the serial monitor. I use RealTerm but they are all much the same. This will also enable you to timestamp your data, using the PC clock, and record it to .csv.
You might find the following background notes useful
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino