#define k A0
#define j A1

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(k, INPUT);
  pinMode(j, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  float kr, jr;
float voltage=kr/(1023/5);  
Serial.print("Potentiometer : ");
  kr = analogRead(k);

  Serial.print(kr);
  voltage=(kr/(1023/5));   
  if (kr!=0.0){
    voltage = voltage-0.01;
  }
  Serial.print("    :  ");
  
  Serial.print(voltage);
  Serial.println(".volt");

  delay(200);
  Serial.print("Motion Sensor : ");

  jr = analogRead(j);
  Serial.print(jr);
  Serial.print("   :  ");
voltage=(jr*5)/1023;
  Serial.print(voltage);
  Serial.println(".volt");

  delay(200);

}