The broken gear *can* be jury-rigged into submission if you want to, at least well enough to get the mechanism to work so you can troubleshoot the rest of it. There's no gluing it, the problem is the shaft hole that's gotten hollowed out over time, which makes the shaft crack the gear. I rigged it by mounting a metal plate from an old PSU on top of it with a shaft hole drilled out that does not have this wiggle room. It took a dremel with some metal cutting discs and fine drill bits. Mounting it is done using kevlar wire and some holes drilled in both gear & metal. Probably should have used some proper fine metal wire, would have been easier to get it to tension, but hey, this works.
The dew sensor.. can probably just disconnect it or bridge it.