Code:
Code created by innovative ideas
int flexs = A0; // flex sensor is connected with analog pin A0
int data = 0;
int relay = 13;
void setup()
{
Serial.begin(9600);
pinMode(flexs, INPUT);
pinMode(relay, OUTPUT);
}
void loop()
{
data = analogRead(flexs);
Serial.println(data);
if( data <= 200)
{
digitalWrite(relay, LOW);
}
if( data > 200)
{
digitalWrite(relay, HIGH);
}
delay(1000);
}
3 Comments
SIR PLS ONFIRM WILL THE PROJECT WORK WITH THIS CODE
ReplyDeleteSIR PLS TELL IS THIS THE CODE FOR THE PART 2 OF LET THE MUTE SPEAK PROJECT
ReplyDeletePLS TELL I NEED HELP
ReplyDelete