http://arduino.cc/en/reference/map to understand more SEE INSIDE iLow is the minimum for input iHigh is the maximum for input iNumber is the number to map oLow is the minimum for output oHigh is the maximum for output y is iNumber mapped
Thanks to @Skyset for background physics