Implemented sensor data logging.