added data api for storing sensor data