Modulated sensor_test.py to increase legibility and simplify loop. TODO: get values from settings.txt and make the functions their own seperate module.
Added some comments to code. TODO: finish adding comments and format them for doxygen