As Bill kindly pointed out, its all on his link with the code. http://itp.nyu.edu/physcomp/sensors/Reports/MG811