It's trivially simple to read a sensor and output a high on another pin if the sensor's low. It's just as simple to output a low if the sensor's low. You can even change your mind next week if you like, and flip the logic in your code without needing to mess with the hardware.
You could also achieve this with a relay module.
What is the voltage on the sw? How much current through the sw? Can you post a diagram?HowToPost
Hi all, just bought arduino starter kit and started a projet to autonomously water my plants.i thought of a way to do it, but to be efficient, I would need to turn a switch OFF when the input is Hi. I have seen a few turorial on how to do that by causing a shunt, but in my circuit there would be a lot of that, and i'm worry about taking to much of current juste to switch on off a few thing.So here is my question... is there is any transistor that switch off when imput is hi? witout needing to shorting anything and without using an inverter???Any help would be apreciated as I've been googling about this for a few hour now!thanks!François
High side switch with a PNP BJT or p-channel FET will do this.
Ok just googled that and yes, that's exactly what i need... I guess the realy really acte as a "transistor" but with the possibility to have it normaly on or off.... Thanks a lot! really helpfull
What is the load you are switching?Why do you need HIGH to mean off?
Please describe the component in the green box.
It's just a normal transistor