Sensor network base station: logs input from usb port to files and a database