arduino code for the medScan system