I have a humidity sensor monitoring but I only want it to monitor for a short time and then I want to power it off. It is 3.3v. I am using CRON to call a script.py When the script finishes I would like power cut to the device. I am assuming I would use another GPIO to do this but I wanted to see if there are other ways?
Is it as simple as either hooking the 3.3v pin or ground PIN to another GPIO? Thanks!