Recommended · for some experience
120/240V to logic level optoisolator (with schematic)
Why people recommend it
Big Clive's in-depth look at a single-channel optoisolator module, suggested for switching a mains load such as a pump and for learning how these boards work.
Watch for: Long and detailed; involves mains voltage