Reversing the analogue input.

void loop()
{ 
  potentioValue = analogRead(0);
  potentioValue = potentioValue / 4;
  potentioValye = 255 - potentioValue;
  analogWrite(9, potentioValue);
}