#include <Servo.h>
Servo Pintu;
void setup() {
// put your setup code here, to run once:
Pintu.attach(3);
pinMode(PIR, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for (int S=0; S>=100; S-=1) {
Pintu.write(S);
delay(1000);}
for (int S=100; S>=0; S-=1) {
Pintu.write(S);
delay(100);}
}