Collects sensor data.