graphactivity to get sensor data