I power my resistive moisture sensor via a gpio pin for the supplied 3.3v - but this thing is constantly on.
I'm wondering how can I set it so that the sensor only powers on and takes a reading every 15 minutes or so? I don't want it constantly powered on, I only want it powered on when we take a measurement.
Is this what PowerPin is for? I'm slightly confused as in the hardware section it states this is for hardware OUTPUT, but my sensor is obviously configured for input.
So I'm wondering... if I set my powerpin on that sensor to the pin it's using for it's vcc 3.3v, is that going to work as I expect - in that it will only supply power to that pin if we're taking a measurement?
The capacitive and also resistive soil moisture sensor works with supply voltages between 3.3V and 5V. Therefore you can use the Arduino (5V operating voltage) and also the ESP (3.3V operating voltage) based microcontroller to measure the soil moisture. For the capacitive soil moisture sensor, you see also from the table that the difference in the sensor value for an operating voltage of 3.3V is very low. Therefore your measuring range is very close and I recommend using an operating voltage of 5V for the capacitive sensor.
https://mypascoconnect.today/