Go Down

Topic: Switching code when in specific condition (Read 327 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