My project involves two TCRT5000. When the first one is triggered (aka the value of the analog reading is over 1000), it will start a fan. The fan will run until the second TCRT5000 is triggered and RELEASED, meaning it will gain a value over 1000 then below 1000 to make the fan stop.
I have two setups like this and I want them both to run independently off of the same arduino. How would I go about doing this!? I don't even know where to start.