I'm doing a project with arduino and i don´t know exactly how i can do the setup, if someone give me some help i´ll be thankful
this is my code for now
void loop () (
humiditysensor = analogread(0);
//Serial.println(humiditysensor);
if(((humiditysensor <"minimumvalue")||(humiditysensor>"maximumvalue")) && (x==0 ))
(
for(i=0;i<=11;i++)
(
for(k=0;k<=11;k++)
(
valve=0;
)
)
'x=1;
)
delay(3000);
if(((humiditysensor > "maximumvalue")||( humiditysensor < "minimumvalue")) && (x==1))
(
for(i=0;i<=11;i++)
(
for(k=0;k<=11;k++)
(
valve=1;
)
)
x=0;
)
delay(3000);
)
my ideia is:Sensor read a value and a valve opens or closes
Ps:this is my first project