UKHeliBob:
What do you want the program to do ?if something is true
carry out action 1
end of if
else
carry out action 2
end of else
What is the something that can be true or false ? What are actions 1 and 2 ?
I am trying to turn on solenoid valves with the program, basically whenever the IR sensor has some type of obstruction, it will turn the valve on.