I'm trying to control a 6V DC Solenoid Valve (here the version I currently have: https://ussolid.com/3-8-female-npt-magnetically-latching-solenoid-valve-dc-6-v.html) with a 4.5-15.4V DC optical fluid sensor (here the version I'm thinking of purchasing: https://www.adafruit.com/product/3397). I have found examples of how to use an arduino or other micro-controller to make this project work, but I'm wondering if it would be possible to get rid of the mircro-controller and if so how I can connect these two devices in a safe way that won't decrease product life. Alternatively I could use an SPST switch instead of the optical fluid sensor, would these be connected the same way?