Aleksi/refining algo2
-Algorithm threshold changed to find the amplitude between min and max and choosing 60%, then adding that to min. This is calculated every 0.5 seconds
-Algorithm threshold changed to find the amplitude between min and max and choosing 60%, then adding that to min. This is calculated every 0.5 seconds