Encoder adapt instead of potentiometer

Change the Pot1 calculation in order to read directly the serial value
(between 0 and 4)