Heated capacitive rain sensor with ESPHome (open hardware)

I built my own rain sensor for Home Assistant and made everything open source.

It uses the RC-SPC1KA, a sealed capacitive sensor with a built-in heater and NTC, on a custom ESP32 board running ESPHome.

What it does

  • Tells rain from dew: the firmware watches how the reading jumps, not how high it is
  • Dries itself after the rain and clears frost
  • Frost lock: no false alarm when frost thaws in the morning
  • Night mode with deep sleep, runs on solar and 18650 cells
  • Home Assistant API or MQTT with a local web page, German and English entity names

It has been on my balcony since October next to a tipping-bucket gauge and usually reports rain a few minutes before the gauge tips.

What’s in the repo
Firmware, KiCad files and JLCPCB fabrication files for the board, a 3D-printable holder, a perfboard build guide and a wiki.

It’s still a prototype. The current board (Rev B) isn’t built yet; its circuit ran on the previous one. Feedback, questions and builds are welcome.

Thanks for sharing! Looked forward to something like this, so I may build one in the future!