What it is: The FC-37 rain sensor is a comb-shaped board that detects water drops landing across its tracks. Paired with its comparator module it tells you how wet the surface is — used in weather stations and "close the window" alarms.
How it works: Water bridging the tracks lowers their resistance. The comparator module's analog output (AO) falls as the board gets wetter. This sketch maps AO to a 0–100 % wetness and flags "RAIN" past a threshold.
Wiring:
Rain module AO -> GPIO0 (analog)
Rain module VCC -> 3V3
Rain module GND -> GND
(the sensing plate connects to the comparator module with its 2-pin lead)
OLED VCC=3V3, GND=GND, SDA=GPIO4, SCL=GPIO5
Libraries: only "Adafruit SSD1306" and "Adafruit GFX Library".
On screen / Serial: wetness 0–100 % and "DRY" / "RAIN". Flick a few drops of water on the plate.
Gotchas: The exposed copper corrodes over time if left powered and wet — power it only when sampling for outdoor use. Higher raw = drier on these modules, so the code inverts it. Tune the trimmer/threshold for your definition of "raining".