Go Down

Topic: Switching code when in specific condition (Read 411 times) previous topic - next topic


Hello there!

I would like to do the following:

1) Default setting: sensor1<200=led,LOW || sensor2<200=led,LOW

2) if(sensor1<200 && sensor2<200)= led = LOW

3) if condition 2) changes to: sensor1>200 && sensor2<300 || sensor1<200 && sensor2>300 =led,HIGH

4) from condition 3) to default

How can I do this?

Thanks in advance!


In loop(), hint loop is called repeatedly.



How many posts are you going to make of the same issue, in different areas of the forum, with different titles and descriptions?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131