My question is: what is the best way to wire it to keep a good accuracy and no reading problem with around 500 samples/seconds ?
The sensor is using 3 wires: 5V, ground and sensor output.
There's only one way to wire it: 5V and gnd, and analog output to an Arduino analog pin.
Arduino's loop() runs (by my trivial testing) in the 100k times a second range, so I'd guess that your readings will be often enough. Others may have specific knowledge about how long an analogRead takes though, and give better info on the possible frequency of reading.
edit....
The code below runs 150000 times a second with the 6x analogReads //'d out, and 1500 times a second with them in.
//speed test
long startTime;
long runTime;
long counter=0;
int analogReading;
void setup()
{
startTime = millis();
Serial.begin(9600);
Serial.print("Start ");
Serial.println(millis());
}
void loop()
{
runTime = millis()- startTime;
counter++;
/*
analogReading= analogRead(0);
analogReading= analogRead(1);
analogReading= analogRead(2);
analogReading= analogRead(3);
analogReading= analogRead(4);
analogReading= analogRead(5);
*/
if (runTime >= 1000)
{
Serial.print("Looped ");
Serial.print(counter);
Serial.print(" times in ");
Serial.print(runTime);
while(1){
};
}
}
You'll only really know it's ok when you invest the 20€ and test it, I suppose.
You'll need to check if it's keeping the output voltage up-to-date as often as you say you want to read it.... No point reading it faster than it can service its output.