Inconsistents values of acceleration with acceleration sensor ADXL335 and MMA776

Hey there.
Yeah, my bad, I didn't know if it really was a problem of Arduino/programs so I would have to put my post in "Installation & Troubleshooting" or as it's kind of a project, I could put it here. Finally I made both. I never posted before so I couldn't be sure which one was the best for my problem. Anyway, tell me if you have any clues, anything would be of great help.
Yesterday, I looked for similar problems here and there and I went here :
https://forum.arduino.cc/index.php?topic=541306.0
It's for a poteniometer but it seemed like we had similar problems.
Someone put this program that seemed nice.

// converts the position of a 10k lin(B) pot to 0-100%
// pot connected to A0, 5volt and ground

int rawValue;
int oldValue;
byte potPercentage;
byte oldPercentage;

void setup() {
  Serial.begin(115200); // set serial monitor to this baud rate, or change the value
}

void loop() {
  // read input twice
  rawValue = analogRead(A0);
  rawValue = analogRead(A0); // double read
  // ignore bad hop-on region of a pot by removing 8 values at both extremes
  rawValue = constrain(rawValue, 8, 1015);
  // add some deadband
  if (rawValue < (oldValue - 4) || rawValue > (oldValue + 4)) {
    oldValue = rawValue;
    // convert to percentage
    potPercentage = map(oldValue, 8, 1008, 0, 100);
    // Only print if %value changes
    if (oldPercentage != potPercentage) {
      Serial.print("Pot percentage is: ");
      Serial.print(potPercentage);
      Serial.println(" %");
      oldPercentage = potPercentage;
    }
  }
}

This part particulary seemed to be of use in my case if i understood it right :

int rawValue;
int oldValue;
byte potPercentage;
byte oldPercentage;

void setup() {
  Serial.begin(115200); // set serial monitor to this baud rate, or change the value
}

void loop() {
  // read input twice
  rawValue = analogRead(A0);
  rawValue = analogRead(A0); // double read
  // ignore bad hop-on region of a pot by removing 8 values at both extremes
  rawValue = constrain(rawValue, 8, 1015);
  // add some deadband
  if (rawValue < (oldValue - 4) || rawValue > (oldValue + 4)) {
    oldValue = rawValue; }

I may be able to put this in the if loop for i from 0 to 4 in the ADXL accelerometer program. By the way, do you know any way to know what values can take the ADXL accelerometer ?
In the case of the current and voltage, I tought that I would take pictures of the circuit and try to change it to get something like that :

(Sorry for the poor quality of this paint)
As i don't have the tools to weld, i tought that I would use scotch at some places. Is it ok ?

I don't know that much about Arduino but if you could point me to a direction, give me some toughts about it or have any lead it could help.
P.S : Sorry if i pissed you off with the double post, in fact, i also tought that I could get an answer faster this way, I won't do it again.

Best regards,
Kevin