Commit 57180a72 authored by Hasini Dilanka's avatar Hasini Dilanka

adding code

parent b571570b
void setup() {
Serial.begin (9600);
pinMode (11,OUTPUT);
}
void loop() {
int t = analogRead (A0);
Serial.println (t);
delay (200);
if (t>900){
digitalWrite (11,HIGH);
}
else {
digitalWrite (11,LOW);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment