You might want to grab a capacitive soil moisture sensor btw because those two pin ones almost always corrode after some time, especially with more power going through them
Indeed they are not meant to be powered all the time - only for brief moments when taking a reading. Unless your purpose is to electrolyze your garden.