You are on page 1of 2

Dianita Fitriani Pogram (10/296933/PA/12970) Fauzia Khairani (10/299960/PA/ 13084)

Sketch int suhuhitung, suhusensor; void setup() { Serial.begin (9600); pinMode (A0, INPUT); } void loop () { suhusensor= analogRead (A0); suhuhitung= (suhusensor*100*5)/1024; Serial.print("suhu kamarku: "); Serial.print(suhuhitung); Serial.print(" derajat celcius"); Serial.println(); delay(1000); } Skema fritzing

Percobaan menggunakan arduino

Output serial