See
for how to log to TinyDB.
For grabbing data through the BlueTooth component, here is a small sample:
Here is a simple BlueTooth text receiver sample, for single value per line: