int sensorpin = A5;
int sensorvalue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorvalue = analogRead(sensorpin);
Serial.print("Nilai Sensor = ");
Serial.println(sensorvalue);
delay(1000);
}
int sensorpin = A5;
int sensorvalue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorvalue = analogRead(sensorpin);
Serial.print("Nilai Sensor = ");
Serial.println(sensorvalue);
delay(1000);
}