Just want to share with you guys the rain sensor I’ve made using Xiaomi’s door sensor, a waterproof battery case and a raindrop module.
First, I took out the door sensor PCB board from the casing, rip out (desolder) the reed switch and solder 2 wires onto it.
Then connect the wires and put it inside the waterproof battery case…
Finally close up the case cover, connect the raindrop module to the case and apply some hot glue on the exposed parts to protect them from the weather.
You can also hot glue a magnet at the back of the case so that you can stick the sensor on top of any metal surfaces.