I have a USB powered sump pump plugged into my raspberry pi 4. Is there a way to program the turn off and on by including it in my program?
I am using for an engineering project that is going to water a plant if the moisture show it is dry. The only way I can power it is with the usb plugged into the raspberry pi. I need to know if it is possible to turn off and on the usb port in my program?