//Nama :
//NIM :
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(19, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int dataADC = analogRead(34);
float Vin = analogRead(34) * 3.3 / 4095.0;
Serial.print("ADC:");
Serial.print(analogRead(34));
Serial.print(" Tegangan:");
Serial.print(Vin);
Serial.println(" V");
if(dataADC > 1000){
digitalWrite(19,HIGH);
} else{
digitalWrite(19,LOW);
}
}