3.3v led and 220v water pump
simulate this circuit &ndash; Schematic created using CircuitLab


C1 limits diode current to roughly 10 mA RMS, half through D1, half through D2
R1 provides some surge protection for LED
R2 discharges C1 for safety


Pay attention to peak voltage ratings on C1, R2!