Added logfile logging of sensor data