bash scripts to read sensors, write log file, and send data to SQL server