Fixed errors in DataLogger

Added new arduino sketch for testing the functionality of data_logger.