#include <LiquidCrystal.h>
// #include "TimerOne.h"
LiquidCrystal lcd(12,11,5,4,3,2);
unsigned long prevTime=0;
volatile int sensorValue=0;

void setup() {
  lcd.begin(16,2);
  lcd.print("hello");
  // Timer1.initialize(100000);
  // Timer1.attachInterrupt(softInterr);
  // lcd.write(softInter);
}

void loop() {
  unsigned long currTime=millis();
  if (currTime-prevTime>=1000){
    prevTime=currTime;
    lcd.print(sensorValue);
    sensorValue=analogRead(A0);
    lcd.clear();
    lcd.print(sensorValue);

  }
}
// void softInterr(){
  
// }
// if (millis()-time>period_speed){
    for (pos = 0; pos <= 140; pos ++) { 
      // if (pos==140){
        servo1.write(pos);              
        delay(50);
      // }
    }  
    for (pos = 0; pos <= 110; pos ++) { 
      // if (pos==110){
        servo2.write(pos);              
        delay(50);
      // }
    }  
    for (pos = 0; pos <= 90; pos ++) { 
      // if (pos==90){
        servo3.write(pos);              
        delay(50);
      // }
    }  
    for (pos = 0; pos <= 50; pos ++) { 
      // delay(50);
      // if(pos==50){
        servo4.write(pos);              
        delay(50); 
      // }     
    }  
  // }      
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
lcd1:VSS
lcd1:VDD
lcd1:V0
lcd1:RS
lcd1:RW
lcd1:E
lcd1:D0
lcd1:D1
lcd1:D2
lcd1:D3
lcd1:D4
lcd1:D5
lcd1:D6
lcd1:D7
lcd1:A
lcd1:K
pot1:GND
pot1:SIG
pot1:VCC
r1:1
r1:2
pot2:GND
pot2:SIG
pot2:VCC