reading sensor data