In this beginners project I will show you two key parts, one being a component the potentiometer and the other is a software command called "if".
*What is a potentiometer*
A potentiometer or "pot" as it is commonly know is a voltage divider (WIKI LINK) but rather than two preset resistors as you will find used in any old text book, this one you can change the resistance and measure the voltage out.Potentiometers are used all over the place for all sorts of things, if you have volume controls in-line on headphone then that is possibly going to be one.