How to subtract the current analog value from previous one I pretty new to the Arduino. I am working on project that find the power by reading your
I think you need something like the following :

int lastTime;

void loop(){
  int thisTime = analogRead(A1);
  int diff = thisTime - lastTime;
  lastTime = thisTime;
  Serial.println(diff);
}