read sensor data