A programming question to arduino due and a senosr

Hi there

Im trying to connect a senosr to my DUE.

First of all I connected the AREF of the DUE board to the VREF of my sensor it is 2.5 Volt. This works so far somehow I cant use analogrefrence(external) I recive an error. Does it work with DUE ?

This is my TEST code
Code:

oid setup() {
  // put your setup code here, to run once:
analogReference(External);
Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  int sensorValue= analogRead (A0);
 // float Current= (sensorValue-4.0833)/2.1167;
 Serial.println(sensorValue);

}

Do not cross post. People tend not to answer cross posters.