pass reading to datalogger