An Arduino sketch and Ruby gateway for logging and uploading sensor data