script to use for online sensor | ScratchStats