Datalogger code for VAST